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:
@@ -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);
|
||||
}
|
||||
// +-----+-----+----+----+
|
||||
|
||||
Reference in New Issue
Block a user