difftreelog
style run rustfmt
in: master
2 files changed
pallets/common/src/lib.rsdiffbeforeafterboth420 CollectionStats,421 CollectionId,422 TokenId,423 PhantomType<RpcCollection<T::AccountId>>,424 ),425 QueryKind = OptionQuery,426 >;420427421 #[pallet::hooks]428 #[pallet::hooks]primitives/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
+}