--- a/pallets/inflation/src/lib.rs +++ b/pallets/inflation/src/lib.rs @@ -41,15 +41,12 @@ dispatch::{DispatchResult}, traits::{ fungible::{Balanced, Inspect, Mutate}, - Get, Imbalance, + Get, tokens::Precision, }, }; pub use pallet::*; -use sp_runtime::{ - Perbill, - traits::{BlockNumberProvider, Zero}, -}; +use sp_runtime::{Perbill, traits::BlockNumberProvider}; use sp_std::convert::TryInto; --- a/pallets/inflation/src/tests.rs +++ b/pallets/inflation/src/tests.rs @@ -20,7 +20,11 @@ use frame_support::{ assert_ok, parameter_types, - traits::{fungible::{Balanced, Inspect}, OnInitialize, Everything, ConstU32, tokens::Precision}, + traits::{ + fungible::{Balanced, Inspect}, + OnInitialize, Everything, ConstU32, + tokens::Precision, + }, weights::Weight, }; use frame_system::RawOrigin;