Use associated constant for max (#3375)

This commit is contained in:
Squirrel
2021-06-28 10:32:33 +01:00
committed by GitHub
parent ab6c79ecb6
commit dcb08fd533
13 changed files with 44 additions and 43 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ impl TableContextTrait for TableContext {
}
fn requisite_votes(&self, group: &ParaId) -> usize {
self.groups.get(group).map_or(usize::max_value(), |g| group_quorum(g.len()))
self.groups.get(group).map_or(usize::MAX, |g| group_quorum(g.len()))
}
}