From c89e60edf8fc68bbf7924059c1b36d06aaca7e40 Mon Sep 17 00:00:00 2001 From: bgallois <benjamin@gallois.cc> Date: Tue, 13 Feb 2024 15:09:44 +0100 Subject: [PATCH] fix unused imports --- node/src/command.rs | 4 ++-- node/src/service.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/node/src/command.rs b/node/src/command.rs index 14825ec79..06d20f211 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -24,10 +24,10 @@ use crate::cli::{Cli, Subcommand}; #[cfg(feature = "g1")] use crate::service::g1_executor::G1Executor; #[cfg(feature = "gdev")] -#[cfg(feature = "runtime-benchmarks")] +#[cfg(feature = "try-runtime")] use crate::service::gdev_executor::GDevExecutor; #[cfg(feature = "gtest")] -#[cfg(feature = "runtime-benchmarks")] +#[cfg(feature = "try-runtime")] use crate::service::gtest_executor::GTestExecutor; use crate::service::{IdentifyRuntimeType, RuntimeType}; use crate::{chain_spec, service}; diff --git a/node/src/service.rs b/node/src/service.rs index 35768f204..72c8bae7b 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -48,6 +48,7 @@ type FullClient<RuntimeApi> = type FullBackend = sc_service::TFullBackend<Block>; type FullSelectChain = sc_consensus::LongestChain<FullBackend, Block>; +#[cfg(feature = "try-runtime")] #[cfg(feature = "gdev")] pub mod gdev_executor { pub use gdev_runtime; -- GitLab