From e24c98519f27874647bdebe1f20467469ca757cd Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Wed, 30 Aug 2023 10:41:10 +0000 Subject: [PATCH] style: fix formatting --- --- a/client/rpc/src/lib.rs +++ b/client/rpc/src/lib.rs @@ -528,7 +528,7 @@ |r: sc_service::Result< up_data_structs::TokenDataVersion1, sp_runtime::DispatchError, - >| r.and_then(|value| Ok(value.into())), + >| r.map(|value| value.into()), ) .or_else(|_| { Ok(api --- a/node/cli/src/chain_spec.rs +++ b/node/cli/src/chain_spec.rs @@ -297,7 +297,7 @@ default_runtime, // Sudo account get_account_id_from_seed::("Alice"), - vec![ + [ ( get_account_id_from_seed::("Alice"), get_from_seed::("Alice"), @@ -371,7 +371,7 @@ default_runtime, // Sudo account get_account_id_from_seed::("Alice"), - vec![ + [ ( get_account_id_from_seed::("Alice"), get_from_seed::("Alice"), --- a/runtime/common/config/pallets/mod.rs +++ b/runtime/common/config/pallets/mod.rs @@ -24,8 +24,7 @@ weights::CommonWeights, RelayChainBlockNumberProvider, }, - Runtime, RuntimeEvent, RuntimeCall, RUNTIME_NAME, TOKEN_SYMBOL, DECIMALS, - Balances, + Runtime, RuntimeEvent, RuntimeCall, RUNTIME_NAME, TOKEN_SYMBOL, DECIMALS, Balances, }; use frame_support::traits::{ConstU32, ConstU64, Currency}; use up_common::{ --- a/runtime/common/ethereum/sponsoring.rs +++ b/runtime/common/ethereum/sponsoring.rs @@ -161,7 +161,8 @@ } } CollectionMode::ReFungible => { - let call = >::parse_full(&call_context.input).ok()??; + let call = + >::parse_full(&call_context.input).ok()??; refungible::call_sponsor(call, collection, who).map(|()| sponsor) } CollectionMode::Fungible(_) => { -- gitstuff