Skip to content

Commit

Permalink
fix unused warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Nov 15, 2024
1 parent 000409d commit 1d8473a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions polkadot/xcm/pallet-xcm/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ mod benchmarks {
BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX))
})?;
},
NonFungible(instance) => {
NonFungible(_instance) => {
<T::XcmExecutor as XcmAssetTransfers>::AssetTransactor::deposit_asset(
&asset,
&origin_location,
Expand Down Expand Up @@ -213,7 +213,7 @@ mod benchmarks {
BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX))
})?;
},
NonFungible(instance) => {
NonFungible(_instance) => {
<T::XcmExecutor as XcmAssetTransfers>::AssetTransactor::deposit_asset(
&asset,
&origin_location,
Expand Down Expand Up @@ -249,7 +249,7 @@ mod benchmarks {
None,
));
},
NonFungible(instance) => {
NonFungible(_instance) => {
assert_ok!(<T::XcmExecutor as XcmAssetTransfers>::AssetTransactor::withdraw_asset(
&asset,
&destination,
Expand All @@ -263,7 +263,7 @@ mod benchmarks {

#[benchmark]
fn transfer_assets() -> Result<(), BenchmarkError> {
let (assets, fee_index, destination, verify_fn) = T::set_up_complex_asset_transfer()
let (assets, _fee_index, destination, verify_fn) = T::set_up_complex_asset_transfer()
.ok_or(BenchmarkError::Override(BenchmarkResult::from_weight(Weight::MAX)))?;
let caller: T::AccountId = whitelisted_caller();
let send_origin = RawOrigin::Signed(caller.clone());
Expand Down

0 comments on commit 1d8473a

Please sign in to comment.