From 001ade9c5d192b16da8d6b3fd354f44225aa3c54 Mon Sep 17 00:00:00 2001 From: Liu-Cheng Xu Date: Thu, 14 Apr 2022 17:18:54 +0800 Subject: [PATCH] Make the generic of CliConfiguration explicit (#11223) Othewise the compiler will complain if someone passes something that implements `CliConfiguration` but `DVC` is not the default `()`. --- substrate/client/cli/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/substrate/client/cli/src/lib.rs b/substrate/client/cli/src/lib.rs index 849a2d2cce..244f6e167f 100644 --- a/substrate/client/cli/src/lib.rs +++ b/substrate/client/cli/src/lib.rs @@ -196,7 +196,10 @@ pub trait SubstrateCli: Sized { /// Create a runner for the command provided in argument. This will create a Configuration and /// a tokio runtime - fn create_runner(&self, command: &T) -> error::Result> { + fn create_runner, DVC: DefaultConfigurationValues>( + &self, + command: &T, + ) -> error::Result> { let tokio_runtime = build_runtime()?; let config = command.create_configuration(self, tokio_runtime.handle().clone())?;