Skip to content

Commit f3037db

Browse files
committed
Merge branch 'to_u32_vec'
2 parents 1974953 + 811c46b commit f3037db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/keypath.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl TryFrom<&str> for Keypath {
6060

6161
impl From<&bitcoin::bip32::DerivationPath> for Keypath {
6262
fn from(value: &bitcoin::bip32::DerivationPath) -> Self {
63-
Keypath(value.into_iter().map(|&el| el.into()).collect())
63+
Keypath(value.to_u32_vec())
6464
}
6565
}
6666

0 commit comments

Comments
 (0)