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

@@ -118,7 +118,7 @@ impl TryFrom<&[u8]> for Apdu {
type Error = ApduStatusCode;
fn try_from(frame: &[u8]) -> Result<Self, ApduStatusCode> {
if frame.len() < APDU_HEADER_LEN as usize {
if frame.len() < APDU_HEADER_LEN {
return Err(ApduStatusCode::SW_WRONG_DATA);
}
// +-----+-----+----+----+