Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smohan-dw committed Jun 17, 2024
1 parent 7fe2fac commit 26a273a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,22 @@ impl SubstrateCli for Cli {
"dev-node-braid" => Box::new(chain_spec::braid_development_config()?),
"dev-node-loom" => Box::new(chain_spec::loom_development_config()?),
"dev-node-weave" => Box::new(chain_spec::weave_development_config()?),
"dev" | _ => Box::new(chain_spec::loom_development_config()?),
"dev" => Box::new(chain_spec::loom_development_config()?),
_ => Box::new(chain_spec::loom_development_config()?),
},
"braid-dev" => Box::new(chain_spec::braid_development_config()?),
#[cfg(feature = "loom-native")]
"loom-dev" => Box::new(chain_spec::loom_development_config()?),
#[cfg(feature = "weave-native")]
"weave-dev" => Box::new(chain_spec::weave_development_config()?),
#[cfg(not(feature = "braid-native"))]
name if name.starts_with("braid-") && !name.ends_with(".json") =>
Err(format!("`{}` only supported with `braid-native` feature enabled.", name))?,
name if name.starts_with("braid-") && !name.ends_with(".json") => {
Err(format!("`{}` only supported with `braid-native` feature enabled.", name))?
},
#[cfg(not(feature = "loom-native"))]
name if name.starts_with("loom-") && !name.ends_with(".json") =>
Err(format!("`{}` only supported with `loom-native` feature enabled.", name))?,
name if name.starts_with("loom-") && !name.ends_with(".json") => {
Err(format!("`{}` only supported with `loom-native` feature enabled.", name))?
},
// "weave" => Box::new(chain_spec::weave_config()?),
path => {
let path = std::path::PathBuf::from(path);
Expand Down

0 comments on commit 26a273a

Please sign in to comment.