Remove useless imports (#11136)

Because `TryInto`/`TryFrom` are in prelude by default from edition 2021

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
Qinxuan Chen authored and GitHub committed 2022-04-03 21:44:29 +02:00
1 parent 98ed4afe45
commit 41c84b0b41
91 files changed
+81 -176

No files matched your search

+1 -1
View File
@@ -316,7 +316,7 @@ use sp_staking::{
offence::{Offence, OffenceError, ReportOffence},
EraIndex, SessionIndex,
};
use sp_std::{collections::btree_map::BTreeMap, convert::From, prelude::*};
use sp_std::{collections::btree_map::BTreeMap, prelude::*};
pub use weights::WeightInfo;
pub use pallet::{pallet::*, *};
+1 -1
View File
@@ -33,7 +33,7 @@ use sp_runtime::{
DispatchError, Perbill, Percent,
};
use sp_staking::{EraIndex, SessionIndex};
use sp_std::{cmp::max, convert::From, prelude::*};
use sp_std::{cmp::max, prelude::*};
mod impls;