From 373464b72d0d851d10481d3371f1ea09b4958a98 Mon Sep 17 00:00:00 2001 From: Kamran Khan Date: Mon, 7 Dec 2020 23:35:47 -0800 Subject: [PATCH] Remove redundant type declaration --- src/ctap/apdu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctap/apdu.rs b/src/ctap/apdu.rs index 530a85b..e3dfe23 100644 --- a/src/ctap/apdu.rs +++ b/src/ctap/apdu.rs @@ -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); }