git.delta.rocks / unique-network / refs/commits / cbc2c66db866

difftreelog

style run rustfmt

Yaroslav Bolyukin2022-04-07parent: #20e3aa7.patch.diff
in: master

2 files changed

modifiedpallets/common/src/lib.rsdiffbeforeafterboth
420 CollectionStats,
421 CollectionId,
422 TokenId,
423 PhantomType<RpcCollection<T::AccountId>>,
424 ),
425 QueryKind = OptionQuery,
426 >;
420427
421 #[pallet::hooks]428 #[pallet::hooks]
modifiedprimitives/data-structs/src/lib.rsdiffbeforeafterboth
--- a/primitives/data-structs/src/lib.rs
+++ b/primitives/data-structs/src/lib.rs
@@ -591,16 +591,17 @@
 	type Identity = PhantomType<T>;
 
 	fn type_info() -> scale_info::Type {
-		use scale_info::{Type, Path, build::{FieldsBuilder, UnnamedFields}};
+		use scale_info::{
+			Type, Path,
+			build::{FieldsBuilder, UnnamedFields},
+		};
 		Type::builder()
 			.path(Path::new("up_data_structs", "PhantomType"))
-			.composite(<FieldsBuilder<UnnamedFields>>::default().field(|b|
-				b.ty::<[T ;0]>()
-			))
+			.composite(<FieldsBuilder<UnnamedFields>>::default().field(|b| b.ty::<[T; 0]>()))
 	}
 }
 impl<T> MaxEncodedLen for PhantomType<T> {
 	fn max_encoded_len() -> usize {
 		0
 	}
-}
\ No newline at end of file
+}