From 3403c01f136fce2b3e068a86993f273608a0613c Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Tue, 25 Oct 2022 12:34:48 +0000 Subject: [PATCH] fix: scheduler warnings --- --- 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}; --- 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, --- a/pallets/scheduler-v2/src/tests.rs +++ b/pallets/scheduler-v2/src/tests.rs @@ -40,8 +40,7 @@ }; use frame_support::{ assert_noop, assert_ok, - traits::{Contains, GetStorageVersion, OnInitialize}, - Hashable, + traits::{Contains, OnInitialize}, }; #[test] -- gitstuff