diff --git a/substrate/frame/core-fellowship/src/lib.rs b/substrate/frame/core-fellowship/src/lib.rs index b80f4d9a587744f9c44a9a91eddd6a8cb0a54303..3f6683e23ae92efba8439b08c5cd207ed534b4d7 100644 --- a/substrate/frame/core-fellowship/src/lib.rs +++ b/substrate/frame/core-fellowship/src/lib.rs @@ -634,6 +634,7 @@ impl<T: Config<I>, I: 'static> RankedMembersSwapHandler<T::AccountId, u16> for P } } +#[cfg(feature = "runtime-benchmarks")] impl<T: Config<I>, I: 'static> pallet_ranked_collective::BenchmarkSetup<<T as frame_system::Config>::AccountId> for Pallet<T, I> { diff --git a/substrate/frame/salary/src/lib.rs b/substrate/frame/salary/src/lib.rs index d9f6cd2df976d446883598841c2666ca32757053..18e5c624218c58e7c696129be8541934bb6ef851 100644 --- a/substrate/frame/salary/src/lib.rs +++ b/substrate/frame/salary/src/lib.rs @@ -478,6 +478,7 @@ impl<T: Config<I>, I: 'static> } } +#[cfg(feature = "runtime-benchmarks")] impl<T: Config<I>, I: 'static> pallet_ranked_collective::BenchmarkSetup<<T as frame_system::Config>::AccountId> for Pallet<T, I> {