git.delta.rocks / unique-network / refs/commits / 3403c01f136f

difftreelog

fix scheduler warnings

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

3 files changed

modifiedpallets/scheduler-v2/src/lib.rsdiffbeforeafterboth
7777
78use 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};
8888
89use frame_system::{self as system};89use frame_system::{self as system};
modifiedpallets/scheduler-v2/src/mock.rsdiffbeforeafterboth
40use 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,
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]