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:
Kian Paimani
2021-11-07 23:24:53 +00:00
committed by GitHub
parent ca5b07243f
commit 937b6f246e
39 changed files with 22 additions and 48 deletions
@@ -35,7 +35,7 @@ use sp_runtime::{
offchain::storage::{MutateStorageError, StorageValueRef},
DispatchError, SaturatedConversion,
};
use sp_std::{boxed::Box, cmp::Ordering, convert::TryFrom, vec::Vec};
use sp_std::{cmp::Ordering, prelude::*};
/// Storage key used to store the last block number at which offchain worker ran.
pub(crate) const OFFCHAIN_LAST_BLOCK: &[u8] = b"parity/multi-phase-unsigned-election";