Skip to content

Commit

Permalink
Use fallible conversion for PathBuf
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Oct 14, 2024
1 parent 2ae26ba commit 2654360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl PinId {
path[0..4].copy_from_slice(b"pin.");
path[4..].copy_from_slice(&self.hex());

PathBuf::from(&path)
PathBuf::try_from(&path).unwrap()
}

/// Get the hex representation of the PIN id
Expand Down

0 comments on commit 2654360

Please sign in to comment.