Fix clippy warnings

This commit is contained in:
Sosthène Guédon
2025-03-06 09:55:34 +01:00
committed by sosthene-nitrokey
parent ca9b10f9c9
commit b8a496f67c
6 changed files with 80 additions and 43 deletions
+1 -1
View File
@@ -648,7 +648,7 @@ impl IoCmd {
let mut random_challenge = vec![0; alg.challenge_len()];
thread_rng().fill_bytes(&mut random_challenge);
let challenge_and_random: Vec<u8> =
[tlv(&[0x80], &challenge), tlv(&[0x81], &random_challenge)]
[tlv(&[0x80], challenge), tlv(&[0x81], &random_challenge)]
.into_iter()
.flatten()
.collect();