Skip to content

Commit

Permalink
Add type to fix nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed May 21, 2024
1 parent cbf1fdf commit a3b7948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coldcard/src/protocol/derivation_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl DerivationPath {
_ => return Err(Error::InvalidFormat),
}

let children = segments.map(|c| c.parse()).collect::<Result<Box<_>, _>>()?;
let children: Box<[Child]> = segments.map(|c| c.parse()).collect::<Result<_, _>>()?;

if children.len() > 12 {
return Err(Error::TooDeep);
Expand Down

0 comments on commit a3b7948

Please sign in to comment.