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
--- a/Makefile
+++ b/Makefile
@@ -166,4 +166,4 @@
 
 .PHONY: clippy
 clippy:
-	SKIP_WASM_BUILD=1 cargo clippy --features=quartz-runtime,unique-runtime,try-runtime,runtime-benchmarks --tests
+	cargo clippy --features=quartz-runtime,unique-runtime,try-runtime,runtime-benchmarks --tests
modifiedpallets/unique/src/benchmarking.rsdiffbeforeafterboth
70 let mode: CollectionMode = CollectionMode::NFT;70 let mode: CollectionMode = CollectionMode::NFT;
71 let caller: T::AccountId = account("caller", 0, SEED);71 let caller: T::AccountId = account("caller", 0, SEED);
72 let _ = <T as CommonConfig>::Currency::deposit(&caller, T::CollectionCreationPrice::get(), Precision::Exact).unwrap();72 let _ = <T as CommonConfig>::Currency::deposit(&caller, T::CollectionCreationPrice::get(), Precision::Exact).unwrap();
73 }: _(RawOrigin::Signed(caller.clone()), col_name.clone(), col_desc.clone(), token_prefix.clone(), mode)73 }: _(RawOrigin::Signed(caller.clone()), col_name, col_desc, token_prefix, mode)
74 verify {74 verify {
75 assert_eq!(<pallet_common::CollectionById<T>>::get(CollectionId(1)).unwrap().owner, caller);75 assert_eq!(<pallet_common::CollectionById<T>>::get(CollectionId(1)).unwrap().owner, caller);
76 }76 }
155155
156 force_repair_collection {156 force_repair_collection {
157 let caller: T::AccountId = account("caller", 0, SEED);157 let caller: T::AccountId = account("caller", 0, SEED);
158 let collection = create_nft_collection::<T>(caller.clone())?;158 let collection = create_nft_collection::<T>(caller)?;
159 }: _(RawOrigin::Root, collection)159 }: _(RawOrigin::Root, collection)
160}160}
161161