Skip to content

Commit

Permalink
Fixed clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ElFantasma committed Feb 29, 2024
1 parent d328ca5 commit d58f427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/tools/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl<'a> ConfigArgs<'a> {
})()
.context("config")?,

validator_key: (|| {
validator_key: {
let key = match self.validator_key {
Some(key) => Some(key.clone()),
None => fs::read_to_string(self.validator_key_file)
Expand All @@ -208,7 +208,7 @@ impl<'a> ConfigArgs<'a> {
.ok(),
};
key.map(|value| Text::new(&value).decode().context("failed decoding key"))
})()
}
.transpose()
.context("validator key")?,

Expand Down

0 comments on commit d58f427

Please sign in to comment.