mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +00:00
Make the generic of CliConfiguration explicit (#11223)
Othewise the compiler will complain if someone passes something that implements `CliConfiguration<DVC>` but `DVC` is not the default `()`.
This commit is contained in:
@@ -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<T: CliConfiguration>(&self, command: &T) -> error::Result<Runner<Self>> {
|
||||
fn create_runner<T: CliConfiguration<DVC>, DVC: DefaultConfigurationValues>(
|
||||
&self,
|
||||
command: &T,
|
||||
) -> error::Result<Runner<Self>> {
|
||||
let tokio_runtime = build_runtime()?;
|
||||
let config = command.create_configuration(self, tokio_runtime.handle().clone())?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user