From 427b368057670c4db2f3ff9f31a1e0c7b46fc5bc Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 13 Sep 2022 10:29:09 +0200 Subject: [PATCH] cargo fmt --- src/tc.rs | 8 ++++---- src/tm.rs | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/tc.rs b/src/tc.rs index 4520232..2231777 100644 --- a/src/tc.rs +++ b/src/tc.rs @@ -522,8 +522,8 @@ mod tests { .write_to_bytes(test_buf.as_mut_slice()) .expect("Error writing TC to buffer"); assert_eq!(size, 13); - let (tc_from_raw, size) = PusTc::from_bytes(&test_buf) - .expect("Creating PUS TC struct from raw buffer failed"); + let (tc_from_raw, size) = + PusTc::from_bytes(&test_buf).expect("Creating PUS TC struct from raw buffer failed"); assert_eq!(size, 13); verify_test_tc(&tc_from_raw, false, 13); assert!(tc_from_raw.user_data().is_none()); @@ -548,8 +548,8 @@ mod tests { .write_to_bytes(test_buf.as_mut_slice()) .expect("Error writing TC to buffer"); assert_eq!(size, 16); - let (tc_from_raw, size) = PusTc::from_bytes(&test_buf) - .expect("Creating PUS TC struct from raw buffer failed"); + let (tc_from_raw, size) = + PusTc::from_bytes(&test_buf).expect("Creating PUS TC struct from raw buffer failed"); assert_eq!(size, 16); verify_test_tc(&tc_from_raw, true, 16); let user_data = tc_from_raw.user_data().unwrap(); diff --git a/src/tm.rs b/src/tm.rs index 58c89f8..3322243 100644 --- a/src/tm.rs +++ b/src/tm.rs @@ -540,8 +540,7 @@ mod tests { .write_to_bytes(&mut buf) .expect("Serialization failed"); assert_eq!(ser_len, 22); - let (tm_deserialized, size) = - PusTm::from_bytes(&buf, 7).expect("Deserialization failed"); + let (tm_deserialized, size) = PusTm::from_bytes(&buf, 7).expect("Deserialization failed"); assert_eq!(ser_len, size); verify_ping_reply(&tm_deserialized, false, 22, dummy_time_stamp()); }