From 9762f7b62397e10308cf474539d4ba69a9388299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Andr=C3=A9s=20Dorado=20Su=C3=A1rez?= Date: Mon, 7 Oct 2024 17:11:03 -0500 Subject: [PATCH] change: make clippy happy --- pallets/gas-transaction-payment/Cargo.toml | 8 ++++++++ pallets/pass/src/lib.rs | 3 --- traits/gas-tank/Cargo.toml | 7 +++++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pallets/gas-transaction-payment/Cargo.toml b/pallets/gas-transaction-payment/Cargo.toml index 21540d6..8950324 100644 --- a/pallets/gas-transaction-payment/Cargo.toml +++ b/pallets/gas-transaction-payment/Cargo.toml @@ -26,6 +26,14 @@ sp-io = {workspace = true} [features] default = ["std"] +runtime-benchmarks=[ + "fc-traits-gas-tank/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "pallet-balances/runtime-benchmarks", + "pallet-utility/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] std = [ "codec/std", "fc-traits-gas-tank/std", diff --git a/pallets/pass/src/lib.rs b/pallets/pass/src/lib.rs index ff6a078..53eafbc 100644 --- a/pallets/pass/src/lib.rs +++ b/pallets/pass/src/lib.rs @@ -150,9 +150,6 @@ pub mod pallet { } #[pallet::call_index(3)] - // #[pallet::feeless_if( - // |_: &OriginFor, _: &DeviceId, _: &CredentialOf, _: &Option>| true - // )] pub fn authenticate( origin: OriginFor, device_id: DeviceId, diff --git a/traits/gas-tank/Cargo.toml b/traits/gas-tank/Cargo.toml index 67a3d26..c49d421 100644 --- a/traits/gas-tank/Cargo.toml +++ b/traits/gas-tank/Cargo.toml @@ -20,6 +20,13 @@ sp-io.workspace = true [features] default = ["std"] +runtime-benchmarks=[ + "pallet-balances/runtime-benchmarks", + "pallet-nfts/runtime-benchmarks", + "frame-support/runtime-benchmarks", + "frame-system/runtime-benchmarks", + "sp-runtime/runtime-benchmarks", +] std = [ "codec/std", "pallet-balances/std",