difftreelog
fix scheduler warnings
in: master
3 files changed
pallets/scheduler-v2/src/lib.rsdiffbeforeafterboth777778use codec::{Codec, Decode, Encode, MaxEncodedLen};78use codec::{Codec, Decode, Encode, MaxEncodedLen};79use frame_support::{79use frame_support::{80 dispatch::{DispatchError, DispatchResult, Dispatchable, GetDispatchInfo, Parameter},80 dispatch::{DispatchError, DispatchResult, Dispatchable, GetDispatchInfo, Parameter, PostDispatchInfo},81 traits::{81 traits::{82 schedule::{self, DispatchTime, LOWEST_PRIORITY},82 schedule::{self, DispatchTime, LOWEST_PRIORITY},83 EnsureOrigin, Get, IsType, OriginTrait, PrivilegeCmp, StorageVersion, PreimageRecipient,83 EnsureOrigin, Get, IsType, OriginTrait, PrivilegeCmp, StorageVersion, PreimageRecipient,84 ConstU32, UnfilteredDispatchable,84 ConstU32, UnfilteredDispatchable,85 },85 },86 weights::{Weight, PostDispatchInfo}, unsigned::TransactionValidityError,86 weights::Weight, unsigned::TransactionValidityError,87};87};888889use frame_system::{self as system};89use frame_system::{self as system};pallets/scheduler-v2/src/mock.rsdiffbeforeafterboth40use frame_support::{40use frame_support::{41 ord_parameter_types, parameter_types,41 ord_parameter_types, parameter_types,42 traits::{42 traits::{43 ConstU32, ConstU64, Contains, EitherOfDiverse, EqualPrivilegeOnly, OnFinalize, OnInitialize,43 ConstU32, ConstU64, Contains, EqualPrivilegeOnly, OnFinalize, OnInitialize,44 },44 },45 weights::constants::RocksDbWeight,45 weights::constants::RocksDbWeight,46};46};47use frame_system::{EnsureRoot, EnsureSignedBy, RawOrigin};47use frame_system::{EnsureRoot, RawOrigin};48use sp_core::H256;48use sp_core::H256;49use sp_runtime::{49use sp_runtime::{50 testing::Header,50 testing::Header,pallets/scheduler-v2/src/tests.rsdiffbeforeafterboth40};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};464547#[test]46#[test]