git.delta.rocks / unique-network / refs/commits / 1454e80628f1

difftreelog

style fix rest of clippy warnings

Yaroslav Bolyukin2023-09-11parent: #af0cd94.patch.diff
in: master

2 files changed

modifiedMakefilediffbeforeafterboth
166166
167.PHONY: clippy167.PHONY: clippy
168clippy: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 --tests
170170
modifiedpallets/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)
 }