Skip to content

Commit

Permalink
Use constant for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
krkhan committed Dec 3, 2020
1 parent 2c49718 commit 0420ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctap/apdu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl TryFrom<&[u8]> for APDU {
let (header, payload) = frame.split_at(APDU_HEADER_LEN);

let mut apdu = APDU {
header: array_ref!(header, 0, 4).into(),
header: array_ref!(header, 0, APDU_HEADER_LEN).into(),
lc: 0x00,
data: Vec::new(),
le: 0x00,
Expand Down

0 comments on commit 0420ad8

Please sign in to comment.