mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 02:48:03 +00:00
Use associated constant for max (#3375)
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user