git.delta.rocks / unique-network / refs/commits / 829f2bcebad6

difftreelog

fix scheduler warnings

Daniel Shiposha2022-10-25parent: #53db16c.patch.diff
in: master

3 files changed

modifiedpallets/scheduler-v2/src/lib.rsdiffbeforeafterboth
--- a/pallets/scheduler-v2/src/lib.rs
+++ b/pallets/scheduler-v2/src/lib.rs
@@ -77,13 +77,13 @@
 
 use codec::{Codec, Decode, Encode, MaxEncodedLen};
 use frame_support::{
-	dispatch::{DispatchError, DispatchResult, Dispatchable, GetDispatchInfo, Parameter},
+	dispatch::{DispatchError, DispatchResult, Dispatchable, GetDispatchInfo, Parameter, PostDispatchInfo},
 	traits::{
 		schedule::{self, DispatchTime, LOWEST_PRIORITY},
 		EnsureOrigin, Get, IsType, OriginTrait, PrivilegeCmp, StorageVersion, PreimageRecipient,
 		ConstU32, UnfilteredDispatchable,
 	},
-	weights::{Weight, PostDispatchInfo}, unsigned::TransactionValidityError,
+	weights::Weight, unsigned::TransactionValidityError,
 };
 
 use frame_system::{self as system};
modifiedpallets/scheduler-v2/src/mock.rsdiffbeforeafterboth
--- a/pallets/scheduler-v2/src/mock.rs
+++ b/pallets/scheduler-v2/src/mock.rs
@@ -40,11 +40,11 @@
 use frame_support::{
 	ord_parameter_types, parameter_types,
 	traits::{
-		ConstU32, ConstU64, Contains, EitherOfDiverse, EqualPrivilegeOnly, OnFinalize, OnInitialize,
+		ConstU32, ConstU64, Contains, EqualPrivilegeOnly, OnFinalize, OnInitialize,
 	},
 	weights::constants::RocksDbWeight,
 };
-use frame_system::{EnsureRoot, EnsureSignedBy, RawOrigin};
+use frame_system::{EnsureRoot, RawOrigin};
 use sp_core::H256;
 use sp_runtime::{
 	testing::Header,
modifiedpallets/scheduler-v2/src/tests.rsdiffbeforeafterboth
40};40};
41use frame_support::{41use frame_support::{
42 assert_noop, assert_ok,42 assert_noop, assert_ok,
43 traits::{Contains, GetStorageVersion, OnInitialize},43 traits::{Contains, OnInitialize},
44 Hashable,
45};44};
4645
47#[test]46#[test]