Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Jan 30, 2024
1 parent 72900af commit 8990f8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bip32/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ impl FromStr for DerivationPath {
type Err = Bip32Error;

fn from_str(s: &str) -> Result<Self, Self::Err> {
s.to_owned()
.split('/')
s.split('/')
.filter(|v| v != &"m")
.map(try_parse_index)
.collect::<Result<Vec<u32>, Bip32Error>>()
Expand Down

0 comments on commit 8990f8a

Please sign in to comment.