From cbc2c66db866b1e06dbc1a42a8946e64f960ce19 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 07 Apr 2022 10:15:35 +0000 Subject: [PATCH] style: run rustfmt --- --- a/pallets/common/src/lib.rs +++ b/pallets/common/src/lib.rs @@ -415,8 +415,15 @@ /// Not used by code, exists only to provide some types to metadata #[pallet::storage] - pub type DummyStorageValue = - StorageValue>), QueryKind = OptionQuery>; + pub type DummyStorageValue = StorageValue< + Value = ( + CollectionStats, + CollectionId, + TokenId, + PhantomType>, + ), + QueryKind = OptionQuery, + >; #[pallet::hooks] impl Hooks> for Pallet { --- a/primitives/data-structs/src/lib.rs +++ b/primitives/data-structs/src/lib.rs @@ -591,16 +591,17 @@ type Identity = PhantomType; 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(>::default().field(|b| - b.ty::<[T ;0]>() - )) + .composite(>::default().field(|b| b.ty::<[T; 0]>())) } } impl MaxEncodedLen for PhantomType { fn max_encoded_len() -> usize { 0 } -} \ No newline at end of file +} -- gitstuff