Skip to content

Commit 74c6769

Browse files
committed
clippy
1 parent 25c2b9e commit 74c6769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aead/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ pub trait Aead: AeadCore {
246246

247247
let (nonce, ciphertext) = payload.msg.split_at(Self::NonceSize::to_usize());
248248
self.decrypt(
249-
&nonce.try_into().unwrap(),
249+
&nonce.try_into().expect("msg should at least nonce-length"),
250250
Payload {
251251
msg: ciphertext,
252252
aad: payload.aad,

0 commit comments

Comments
 (0)