From b38aedea8f617db04537562dad4ff7b82faf15fb Mon Sep 17 00:00:00 2001 From: chungquantin <56880684+chungquantin@users.noreply.github.com> Date: Fri, 13 Sep 2024 22:49:07 +0700 Subject: [PATCH] fix: formatting --- pallets/api/src/fungibles/mod.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pallets/api/src/fungibles/mod.rs b/pallets/api/src/fungibles/mod.rs index de9b6fac..c045fb84 100644 --- a/pallets/api/src/fungibles/mod.rs +++ b/pallets/api/src/fungibles/mod.rs @@ -498,12 +498,10 @@ pub mod pallet { use Read::*; match request { TotalSupply(token) => ReadResult::TotalSupply(AssetsOf::::total_supply(token)), - BalanceOf { token, owner } => { - ReadResult::BalanceOf(AssetsOf::::balance(token, owner)) - }, - Allowance { token, owner, spender } => { - ReadResult::Allowance(AssetsOf::::allowance(token, &owner, &spender)) - }, + BalanceOf { token, owner } => + ReadResult::BalanceOf(AssetsOf::::balance(token, owner)), + Allowance { token, owner, spender } => + ReadResult::Allowance(AssetsOf::::allowance(token, &owner, &spender)), TokenName(token) => ReadResult::TokenName( as MetadataInspect< AccountIdOf, >>::name(token)),