From 42c871b9444f4bdeb93b12b12117cd89448976aa 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 | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/node/src/command.rs b/node/src/command.rs index 10473a1e8..0173cf03f 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -15,6 +15,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#![allow(unused_imports)] + pub mod key; pub mod utils; @@ -24,10 +26,8 @@ use crate::cli::{Cli, Subcommand}; #[cfg(feature = "g1")] use crate::service::g1_executor::G1Executor; #[cfg(feature = "gdev")] -#[cfg(feature = "runtime-benchmarks")] use crate::service::gdev_executor::GDevExecutor; #[cfg(feature = "gtest")] -#[cfg(feature = "runtime-benchmarks")] 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..134e7e49e 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>; +#[allow(dead_code)] #[cfg(feature = "gdev")] pub mod gdev_executor { pub use gdev_runtime; @@ -66,6 +67,7 @@ pub mod gdev_executor { } } +#[allow(dead_code)] #[cfg(feature = "g1")] pub mod g1_executor { pub use g1_runtime; @@ -84,6 +86,7 @@ pub mod g1_executor { } } +#[allow(dead_code)] #[cfg(feature = "gtest")] pub mod gtest_executor { pub use gtest_runtime; -- GitLab