diff --git a/pallet/message-gadget/src/lib.rs b/pallet/message-gadget/src/lib.rs index e36ca4b4..987ac7eb 100644 --- a/pallet/message-gadget/src/lib.rs +++ b/pallet/message-gadget/src/lib.rs @@ -27,7 +27,7 @@ use frame_support::{log, pallet_prelude::*, traits::Get}; use frame_system::pallet_prelude::*; use sp_core::{H160, H256}; use sp_io::hashing; -use sp_std::vec; +use sp_std::prelude::*; #[frame_support::pallet] pub mod pallet { diff --git a/precompile/bls12-381/src/lib.rs b/precompile/bls12-381/src/lib.rs index 7016a915..fbfa4b1e 100644 --- a/precompile/bls12-381/src/lib.rs +++ b/precompile/bls12-381/src/lib.rs @@ -25,7 +25,7 @@ use milagro_bls::{AggregatePublicKey, AggregateSignature, PublicKey, Signature}; // moonbeam use precompile_utils::prelude::*; // substrate -use sp_std::vec::Vec; +use sp_std::prelude::*; pub(crate) const VERIFY_ESTIMATED_COST: u64 = 100_000; pub struct BLS12381(PhantomData); diff --git a/precompile/staking/src/lib.rs b/precompile/staking/src/lib.rs index d5fef1e3..8724462e 100644 --- a/precompile/staking/src/lib.rs +++ b/precompile/staking/src/lib.rs @@ -36,7 +36,7 @@ use frame_support::{ }; use sp_core::{H160, U256}; use sp_runtime::Perbill; -use sp_std::vec::Vec; +use sp_std::prelude::*; pub struct Staking(PhantomData); diff --git a/runtime/pangolin/src/migration.rs b/runtime/pangolin/src/migration.rs index 0c9a8e76..d4e49525 100644 --- a/runtime/pangolin/src/migration.rs +++ b/runtime/pangolin/src/migration.rs @@ -1,12 +1,13 @@ // darwinia #[allow(unused_imports)] use crate::*; +// substrate pub struct CustomOnRuntimeUpgrade; impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade { #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, &'static str> { - Ok(sp_std::vec::Vec::new()) + fn pre_upgrade() -> Result, &'static str> { + Ok(Vec::new()) } #[cfg(feature = "try-runtime")] diff --git a/runtime/pangoro/src/migration.rs b/runtime/pangoro/src/migration.rs index 9de79197..4650e4bb 100644 --- a/runtime/pangoro/src/migration.rs +++ b/runtime/pangoro/src/migration.rs @@ -23,8 +23,8 @@ use crate::*; pub struct CustomOnRuntimeUpgrade; impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade { #[cfg(feature = "try-runtime")] - fn pre_upgrade() -> Result, &'static str> { - Ok(sp_std::vec::Vec::new()) + fn pre_upgrade() -> Result, &'static str> { + Ok(Vec::new()) } #[cfg(feature = "try-runtime")]