From 6a95b3dd45fc6a079880a664dae16cd89ecf0384 Mon Sep 17 00:00:00 2001 From: arkpar Date: Tue, 25 Apr 2023 17:03:45 +0200 Subject: [PATCH] Fixed some warnings --- xcm/pallet-xcm-benchmarks/src/fungible/mod.rs | 2 +- xcm/pallet-xcm-benchmarks/src/generic/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xcm/pallet-xcm-benchmarks/src/fungible/mod.rs b/xcm/pallet-xcm-benchmarks/src/fungible/mod.rs index 7fa527dffeba..bc5c7d5c44e9 100644 --- a/xcm/pallet-xcm-benchmarks/src/fungible/mod.rs +++ b/xcm/pallet-xcm-benchmarks/src/fungible/mod.rs @@ -20,7 +20,7 @@ pub use pallet::*; #[cfg(feature = "runtime-benchmarks")] pub mod benchmarking; -#[cfg(test)] +#[cfg(feature = "runtime-benchmarks")] mod mock; #[frame_support::pallet] diff --git a/xcm/pallet-xcm-benchmarks/src/generic/mod.rs b/xcm/pallet-xcm-benchmarks/src/generic/mod.rs index 17e8aa6de95f..990cf43fab72 100644 --- a/xcm/pallet-xcm-benchmarks/src/generic/mod.rs +++ b/xcm/pallet-xcm-benchmarks/src/generic/mod.rs @@ -18,7 +18,7 @@ pub use pallet::*; #[cfg(feature = "runtime-benchmarks")] pub mod benchmarking; -#[cfg(test)] +#[cfg(feature = "runtime-benchmarks")] mod mock; #[frame_support::pallet]