From c61bccc9aefafb7eb7c8bb0963d976e2065ab77f Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Wed, 22 Apr 2026 20:16:25 +0300 Subject: [PATCH] fix(welati): cfg-gate Currency and SaturatedConversion imports to avoid unused-import in benchmarks clippy runs with --all-features (includes runtime-benchmarks) so the #[cfg(not(feature = "runtime-benchmarks"))] block is excluded and the imports appeared unused. check-try-runtime runs without runtime-benchmarks so the block is included and the imports are required. --- pezcumulus/teyrchains/pezpallets/welati/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs b/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs index 3fe11348..9ae12012 100644 --- a/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs +++ b/pezcumulus/teyrchains/pezpallets/welati/src/lib.rs @@ -207,6 +207,10 @@ use pezpallet_identity_kyc::types::KycStatus; use pezpallet_tiki::{Tiki, TikiScoreProvider}; use pezpallet_trust::TrustScoreProvider; use pezsp_runtime::traits::Dispatchable; +#[cfg(not(feature = "runtime-benchmarks"))] +use pezframe_support::traits::Currency; +#[cfg(not(feature = "runtime-benchmarks"))] +use pezsp_runtime::SaturatedConversion; use pezsp_std::{boxed::Box, vec, vec::Vec}; /// Interface for getting citizenship information from other pallets.