mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
put TryInto and TryFrom in sp_std::prelude (#10183)
* Switch to Rust 2021 * Update trybuild to fix errors * half baked * fix * remove unused import * remove more warnings Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -347,7 +347,6 @@ pub mod pallet {
|
||||
// given weight == u64, we build multipliers from `diff` of two weight values, which can
|
||||
// at most be maximum block weight. Make sure that this can fit in a multiplier without
|
||||
// loss.
|
||||
use sp_std::convert::TryInto;
|
||||
assert!(
|
||||
<Multiplier as sp_runtime::traits::Bounded>::max_value() >=
|
||||
Multiplier::checked_from_integer(
|
||||
|
||||
Reference in New Issue
Block a user