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
@@ -84,7 +84,7 @@ trait ChainBackend<Client, Block: BlockT>: Send + Sync + 'static
// FIXME <2329>: Database seems to limit the block number to u32 for no reason
let block_num: u32 = num_or_hex.try_into().map_err(|_| {
Error::from(format!(
"`{:?}` > u32::max_value(), the max block number is u32.",
"`{:?}` > u32::MAX, the max block number is u32.",
num_or_hex
))
})?;