Skip to content

Commit

Permalink
Remove clippy workaround introduced
Browse files Browse the repository at this point in the history
Remove clippy workaround introduced to avoid false positive checks
in the file `lib/src/config/config_file/mod.rs`. This can be
removed now since the issue that introduced it in clippy land is
already closed.
This closes #378.
  • Loading branch information
jsdanielh committed Nov 5, 2021
1 parent 0470b15 commit 998b59a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/src/config/config_file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,6 @@ impl FromStr for Network {
type Err = ();

fn from_str(s: &str) -> Result<Network, ()> {
// Fixme: Introduced this to workaround false positives in clippy
// as documented here:
// https://github.com/rust-lang/rust-clippy/issues/7863
#[allow(clippy::match_str_case_mismatch)]
Ok(match s.to_lowercase().as_str() {
"main" => Network::Main,
"test" => Network::Test,
Expand Down

0 comments on commit 998b59a

Please sign in to comment.