Skip to content

Commit f38221c

Browse files
committed
Fix lint error: passing a unit value to a function
Clippy lint with no-default features. Make the suggested change to fix the lint.
1 parent 8e9dd8d commit f38221c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benches/chacha20_poly1305/chacha20poly1305.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ fn bench_chacha20poly1305(c: &mut Criterion) {
4646
let mut buf = ct.clone();
4747
let cipher = ChaCha20Poly1305::new(key, nonce);
4848
let res = cipher.decrypt(black_box(&mut buf), tag, Some(aad));
49-
black_box(res.unwrap());
49+
res.unwrap();
50+
black_box(());
5051
});
5152
});
5253
}

0 commit comments

Comments
 (0)