Use MAX associated const (#9196)

* Use MAX associated const
This commit is contained in:
Squirrel authored and GitHub committed 2021-06-24 11:53:49 +01:00
1 parent 09d9c2c9f6
commit ea1f21a904
56 files changed
+178 -178

No files matched your search

+1 -1
View File
@@ -778,7 +778,7 @@ fn hash69<T: AsMut<[u8]> + Default>() -> T {
/// This type alias represents an index of an event.
///
/// We use `u32` here because this index is used as index for `Events<T>`
/// which can't contain more than `u32::max_value()` items.
/// which can't contain more than `u32::MAX` items.
type EventIndex = u32;
/// Type used to encode the number of references an account has.