diff --git a/node/src/command.rs b/node/src/command.rs index 10473a1e8507391b7d9c2ffc1f8e6beb453c1634..0173cf03f01b23283029739cdfbeab1b96b2a1c7 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 35768f20485af832830b9ed79517fc80e3373243..134e7e49e1ca0596d56cc6ab06897cb2ad246c8e 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;