From 1454e80628f19e4c0f0bbc61fd1081ba7411d5a5 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Mon, 11 Sep 2023 00:13:59 +0000 Subject: [PATCH] style: fix rest of clippy warnings --- --- 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 --- 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 _ = ::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!(>::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::(caller.clone())?; + let collection = create_nft_collection::(caller)?; }: _(RawOrigin::Root, collection) } -- gitstuff