Skip to content

Commit

Permalink
Fixed clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ElFantasma committed Mar 6, 2024
1 parent f8d46c2 commit 29cd3a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/tools/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ struct Config {

/// Function to let clap parse the command line `config` argument
fn parse_config(val: &str) -> anyhow::Result<Serde<AppConfig>> {
let config = decode_json(val)?;
Ok(config)
decode_json(val)
}

/// Node/validator key parser for clap
fn parse_key<T: TextFmt>(val: &str) -> anyhow::Result<T> {
Ok(Text::new(&val).decode().context("failed decoding key")?)
Text::new(val).decode().context("failed decoding key")
}

impl Cli {
Expand Down

0 comments on commit 29cd3a8

Please sign in to comment.