File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -453,10 +453,7 @@ impl FromStr for DescriptorPublicKey {
453
453
Ok ( DescriptorPublicKey :: XPub ( DescriptorXKey {
454
454
origin,
455
455
xkey : xpub,
456
- derivation_path : derivation_paths
457
- . into_iter ( )
458
- . next ( )
459
- . unwrap_or_else ( bip32:: DerivationPath :: default) ,
456
+ derivation_path : derivation_paths. into_iter ( ) . next ( ) . unwrap_or_default ( ) ,
460
457
wildcard,
461
458
} ) )
462
459
}
@@ -716,10 +713,7 @@ impl FromStr for DescriptorSecretKey {
716
713
Ok ( DescriptorSecretKey :: XPrv ( DescriptorXKey {
717
714
origin,
718
715
xkey : xpriv,
719
- derivation_path : derivation_paths
720
- . into_iter ( )
721
- . next ( )
722
- . unwrap_or_else ( bip32:: DerivationPath :: default) ,
716
+ derivation_path : derivation_paths. into_iter ( ) . next ( ) . unwrap_or_default ( ) ,
723
717
wildcard,
724
718
} ) )
725
719
}
You can’t perform that action at this time.
0 commit comments