Skip to content

Commit

Permalink
Allow clippy warning manual-split-once
Browse files Browse the repository at this point in the history
Not using `split_once` is a warning for `stable` but is not yet supported with our MSRV.
https://rust-lang.github.io/rust-clippy/master/index.html#manual_split_once
  • Loading branch information
notmandatory committed Feb 17, 2022
1 parent ef1e19e commit 02dde89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wallet/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ impl FromStr for WalletExport {
}
}

#[allow(clippy::manual-split-once)]
fn remove_checksum(s: String) -> String {
s.splitn(2, '#').next().map(String::from).unwrap()
}
Expand Down

0 comments on commit 02dde89

Please sign in to comment.