Fixes new clippy lints on the latest nightly (#603)

* Fixes new clippy lints on the latest nightly

We didn't see these before because of our old Rust toolchain.

* fixes nit
This commit is contained in:
kaczmarczyck
2023-03-09 12:08:34 +01:00
committed by GitHub
parent ca65902a8f
commit 752db8cc90
5 changed files with 9 additions and 10 deletions

View File

@@ -1224,7 +1224,7 @@ mod test {
),
// Reject PIN "12'\0'4" (a zero byte at index 2).
(
b"12\04".to_vec(),
[b'1', b'2', 0, b'4'].to_vec(),
Err(Ctap2StatusCode::CTAP2_ERR_PIN_POLICY_VIOLATION),
),
// PINs must be at most 63 bytes long, to allow for a trailing 0u8 padding.