difftreelog
style fix rest of clippy warnings
in: master
2 files changed
Makefilediffbeforeafterboth166166167.PHONY: clippy167.PHONY: clippy168clippy:168clippy:169 SKIP_WASM_BUILD=1 cargo clippy --features=quartz-runtime,unique-runtime,try-runtime,runtime-benchmarks --tests169 cargo clippy --features=quartz-runtime,unique-runtime,try-runtime,runtime-benchmarks --tests170170pallets/unique/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/unique/src/benchmarking.rs
+++ b/pallets/unique/src/benchmarking.rs
@@ -70,7 +70,7 @@
let mode: CollectionMode = CollectionMode::NFT;
let caller: T::AccountId = account("caller", 0, SEED);
let _ = <T as CommonConfig>::Currency::deposit(&caller, T::CollectionCreationPrice::get(), Precision::Exact).unwrap();
- }: _(RawOrigin::Signed(caller.clone()), col_name.clone(), col_desc.clone(), token_prefix.clone(), mode)
+ }: _(RawOrigin::Signed(caller.clone()), col_name, col_desc, token_prefix, mode)
verify {
assert_eq!(<pallet_common::CollectionById<T>>::get(CollectionId(1)).unwrap().owner, caller);
}
@@ -155,6 +155,6 @@
force_repair_collection {
let caller: T::AccountId = account("caller", 0, SEED);
- let collection = create_nft_collection::<T>(caller.clone())?;
+ let collection = create_nft_collection::<T>(caller)?;
}: _(RawOrigin::Root, collection)
}