File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ where
250
250
251
251
packet
252
252
. extend_from_slice ( spi_hdr. 0 . to_be_bytes ( ) . as_slice ( ) )
253
- . map_err ( |_ | AdinError :: PACKET_TOO_BIG ) ?;
253
+ . map_err ( |_e | AdinError :: PACKET_TOO_BIG ) ?;
254
254
255
255
if self . crc {
256
256
// Add CRC for header data
@@ -262,10 +262,12 @@ where
262
262
// Add port number, ADIN1110 its fixed to zero/P1, but for ADIN2111 has two ports.
263
263
packet
264
264
. extend_from_slice ( u16:: from ( PORT_ID_BYTE ) . to_be_bytes ( ) . as_slice ( ) )
265
- . map_err ( |_ | AdinError :: PACKET_TOO_BIG ) ?;
265
+ . map_err ( |_e | AdinError :: PACKET_TOO_BIG ) ?;
266
266
267
267
// Copy packet data to spi buffer.
268
- packet. extend_from_slice ( frame) . map_err ( |_| AdinError :: PACKET_TOO_BIG ) ?;
268
+ packet
269
+ . extend_from_slice ( frame)
270
+ . map_err ( |_e| AdinError :: PACKET_TOO_BIG ) ?;
269
271
270
272
// Pad data up to ETH_MIN_LEN - FCS_LEN
271
273
for _ in packet. len ( ) ..( ETH_MIN_LEN - FSC_LEN + header_len) {
You can’t perform that action at this time.
0 commit comments