From 9891bd9c09321da0682e3d922a4679e91bab75f1 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 2 Dec 2023 09:50:28 -0800 Subject: [PATCH] clippy --- ledger/src/transports/native/hid.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledger/src/transports/native/hid.rs b/ledger/src/transports/native/hid.rs index 7161920..0f2be4a 100644 --- a/ledger/src/transports/native/hid.rs +++ b/ledger/src/transports/native/hid.rs @@ -77,7 +77,7 @@ fn write_apdu( channel: u16, apdu_command: &[u8], ) -> Result<(), NativeTransportError> { - tracing::debug!(apdu = %hex::encode(&apdu_command), bytes = apdu_command.len(), "Writing APDU to device"); + tracing::debug!(apdu = %hex::encode(apdu_command), bytes = apdu_command.len(), "Writing APDU to device"); let command_length = apdu_command.len(); @@ -103,7 +103,7 @@ fn write_apdu( buffer[6..6 + chunk.len()].copy_from_slice(chunk); tracing::trace!( - buffer = hex::encode(&buffer), + buffer = hex::encode(buffer), sequence_idx, bytes = chunk.len(), "Writing chunk to device",