Use constant for consistency
This commit is contained in:
@@ -124,7 +124,7 @@ impl TryFrom<&[u8]> for APDU {
|
|||||||
let (header, payload) = frame.split_at(APDU_HEADER_LEN);
|
let (header, payload) = frame.split_at(APDU_HEADER_LEN);
|
||||||
|
|
||||||
let mut apdu = APDU {
|
let mut apdu = APDU {
|
||||||
header: array_ref!(header, 0, 4).into(),
|
header: array_ref!(header, 0, APDU_HEADER_LEN).into(),
|
||||||
lc: 0x00,
|
lc: 0x00,
|
||||||
data: Vec::new(),
|
data: Vec::new(),
|
||||||
le: 0x00,
|
le: 0x00,
|
||||||
|
|||||||
Reference in New Issue
Block a user