From b49baed6961232600048aefb9e49f0a8d57afe0e Mon Sep 17 00:00:00 2001 From: Dmitry Kashitsyn Date: Sun, 15 Oct 2017 20:10:59 +0700 Subject: [PATCH] Removes redundant `mut` in hw --- hw/src/ledger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/src/ledger.rs b/hw/src/ledger.rs index 5fcac3e55..6b4c87a0a 100644 --- a/hw/src/ledger.rs +++ b/hw/src/ledger.rs @@ -255,7 +255,7 @@ impl Manager { let mut chunk_size = if chunk_index == 0 { 12 } else { 5 }; let size = min(64 - chunk_size, data.len() - offset); { - let mut chunk = &mut hid_chunk[HID_PREFIX_ZERO..]; + let chunk = &mut hid_chunk[HID_PREFIX_ZERO..]; &mut chunk[0..5].copy_from_slice(&[0x01, 0x01, APDU_TAG, (chunk_index >> 8) as u8, (chunk_index & 0xff) as u8 ]); if chunk_index == 0 {