From bb1ecb29b68bcdd8b635ce5d7b22ce0ca8691d9d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 30 May 2023 19:35:59 +0200 Subject: [PATCH] fmt and clippy --- src/cfdp/pdu/file_data.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/cfdp/pdu/file_data.rs b/src/cfdp/pdu/file_data.rs index de4acae..f616adc 100644 --- a/src/cfdp/pdu/file_data.rs +++ b/src/cfdp/pdu/file_data.rs @@ -348,8 +348,11 @@ mod tests { assert_eq!(buf[current_idx], 1); current_idx += 1; // Still verify that the rest is written correctly. - assert_eq!(u32::from_be_bytes(buf[current_idx..current_idx+4].try_into().unwrap()), 10); - current_idx+=4; + assert_eq!( + u32::from_be_bytes(buf[current_idx..current_idx + 4].try_into().unwrap()), + 10 + ); + current_idx += 4; assert_eq!(buf[current_idx], 1); current_idx += 1; assert_eq!(buf[current_idx], 2); @@ -357,7 +360,7 @@ mod tests { assert_eq!(buf[current_idx], 3); current_idx += 1; assert_eq!(buf[current_idx], 4); - current_idx +=1; + current_idx += 1; assert_eq!(current_idx, fd_pdu.written_len()); } }