mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-13 20:55:50 +00:00
Remove the Copy bound on AssetId (#14158)
* Remove the `Copy` bound on `AssetId` * Also relax the `Copy` bound in the assets pallet * Fix warnings on the newest nightly Rust * Remove some unnecessary `clone()`s * Try to satisfy clippy * Remove some more unnecessary `clone()`s * Add more `.clone()`s for newly merged code * Also add `clone()`s in the benchmarks --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -93,7 +93,7 @@ benchmarks! {
|
||||
let collection = T::BenchmarkHelper::collection(0);
|
||||
let nft = T::BenchmarkHelper::nft(0);
|
||||
let (caller, caller_lookup) = mint_nft::<T>(nft);
|
||||
}: _(SystemOrigin::Signed(caller.clone()), collection, nft, asset, caller_lookup, 1000u32.into())
|
||||
}: _(SystemOrigin::Signed(caller.clone()), collection, nft, asset.clone(), caller_lookup, 1000u32.into())
|
||||
verify {
|
||||
assert_last_event::<T>(
|
||||
Event::NftFractionalized {
|
||||
@@ -115,11 +115,11 @@ benchmarks! {
|
||||
SystemOrigin::Signed(caller.clone()).into(),
|
||||
collection,
|
||||
nft,
|
||||
asset,
|
||||
asset.clone(),
|
||||
caller_lookup.clone(),
|
||||
1000u32.into(),
|
||||
)?;
|
||||
}: _(SystemOrigin::Signed(caller.clone()), collection, nft, asset, caller_lookup)
|
||||
}: _(SystemOrigin::Signed(caller.clone()), collection, nft, asset.clone(), caller_lookup)
|
||||
verify {
|
||||
assert_last_event::<T>(
|
||||
Event::NftUnified {
|
||||
|
||||
Reference in New Issue
Block a user