From c9b8ce28cd6b7603d49da0a705e797e7d62f5f0d Mon Sep 17 00:00:00 2001 From: Ayevbeosa Iyamu Date: Thu, 26 Dec 2024 10:32:00 +0100 Subject: [PATCH] remove unused variable --- polkadot/xcm/xcm-builder/src/weight.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polkadot/xcm/xcm-builder/src/weight.rs b/polkadot/xcm/xcm-builder/src/weight.rs index e8deb2a6ed37..f8097bf5071c 100644 --- a/polkadot/xcm/xcm-builder/src/weight.rs +++ b/polkadot/xcm/xcm-builder/src/weight.rs @@ -233,8 +233,8 @@ impl< ) -> Result { tracing::trace!(target: "xcm::weight", "UsingComponents::buy_weight weight: {:?}, payment: {:?}, context: {:?}", weight, payment, context); let amount = WeightToFee::weight_to_fee(&weight); - let u128_amount: u128 = amount.try_into().map_err(|error| { - tracing::error!(target: "xcm::weight", ?error, "Amount could not be converted"); + let u128_amount: u128 = amount.try_into().map_err(|_| { + tracing::error!(target: "xcm::weight", "Amount could not be converted"); XcmError::Overflow })?; let required = Asset { id: AssetId(AssetIdValue::get()), fun: Fungible(u128_amount) };