Skip to content

Commit

Permalink
Run cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandudey committed Dec 12, 2024
1 parent 041f4e9 commit 5bc067b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bip32/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ pub enum DeriveXpubError {
Secp256k1(secp256k1::Error),
}


impl From<secp256k1::Error> for DeriveXpubError {
fn from(e: secp256k1::Error) -> Self {
Self::Secp256k1(e)
Expand Down Expand Up @@ -391,7 +390,11 @@ impl From<base58ck::Error> for ParseExtendedKeyError {
#[cfg(feature = "base58ck")]
impl From<nom::error::VerboseError<&[u8]>> for ParseExtendedKeyError {
fn from(e: nom::error::VerboseError<&[u8]>) -> Self {
let errors = e.errors.iter().map(|v| (v.0.to_owned(), v.1.clone())).collect();
let errors = e
.errors
.iter()
.map(|v| (v.0.to_owned(), v.1.clone()))
.collect();
Self::Parser(nom::error::VerboseError { errors })
}
}
Expand Down

0 comments on commit 5bc067b

Please sign in to comment.