Skip to content

Commit

Permalink
fix(clippy): fallible conversion clippy check
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Jan 22, 2024
1 parent a1feeaf commit f26eb43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umbral-pre/src/bindings_python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn hash(data: impl AsRef<[u8]>) -> i64 {
// we just need something fast that minimizes conflicts.
let digest = Sha256::new().chain(data).finalize();
let (chunk, _): (GenericArray<u8, U8>, _) = digest.split();
let arr: [u8; 8] = chunk.try_into().unwrap();
let arr: [u8; 8] = chunk.into();
i64::from_be_bytes(arr)
}

Expand Down

0 comments on commit f26eb43

Please sign in to comment.