git.delta.rocks / unique-network / refs/commits / 103f351cae21

difftreelog

fix cargo fmt and warnings

Grigoriy Simonov2023-05-25parent: #7bc3b32.patch.diff
in: master

2 files changed

modifiedpallets/inflation/src/lib.rsdiffbeforeafterboth
41 dispatch::{DispatchResult},41 dispatch::{DispatchResult},
42 traits::{42 traits::{
43 fungible::{Balanced, Inspect, Mutate},43 fungible::{Balanced, Inspect, Mutate},
44 Get, Imbalance,44 Get,
45 tokens::Precision,45 tokens::Precision,
46 },46 },
47};47};
48pub use pallet::*;48pub use pallet::*;
49use sp_runtime::{49use sp_runtime::{Perbill, traits::BlockNumberProvider};
50 Perbill,
51 traits::{BlockNumberProvider, Zero},
52};
5350
54use sp_std::convert::TryInto;51use sp_std::convert::TryInto;
modifiedpallets/inflation/src/tests.rsdiffbeforeafterboth
--- 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;