Remove redundant type declaration

This commit is contained in:
Kamran Khan
2020-12-07 23:35:47 -08:00
parent e4d160aaee
commit 373464b72d

View File

@@ -168,7 +168,7 @@ impl TryFrom<&[u8]> for APDU {
}
if payload.len() > 2 {
// Lc is possibly three-bytes long
let extended_apdu_lc: usize = BigEndian::read_u16(&payload[1..3]) as usize;
let extended_apdu_lc = BigEndian::read_u16(&payload[1..3]) as usize;
if payload.len() < extended_apdu_lc + 3 {
return Err(ApduStatusCode::SW_WRONG_LENGTH);
}