Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Commit

Permalink
chore(ci) Hush semgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Jun 14, 2021
1 parent 9f8da56 commit 4c064a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ed25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ pub(crate) mod test_utils {
// OK to unwrap because `from_bytes` returns error only if the input slice has incorrect
// length. But here we only generate arrays of size `SECRET_KEY_LENGTH` which is the
// correct one.
// D.I. Letting this go, not for above reason but proptest uses unwrap due to
// its structure.
// nosemgrep
let secret = SecretKey::from_bytes(&bytes[..]).unwrap();
let public = PublicKey::from(&secret);

Expand Down

0 comments on commit 4c064a4

Please sign in to comment.