From 798987cf552663f527cbef4ec41031868684a5b5 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 2 Apr 2024 22:28:17 +0200 Subject: [PATCH] cargo fmt --- satrs/src/pus/event.rs | 7 +++++-- satrs/src/pus/mod.rs | 10 +++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/satrs/src/pus/event.rs b/satrs/src/pus/event.rs index d5933cd..a1f4d81 100644 --- a/satrs/src/pus/event.rs +++ b/satrs/src/pus/event.rs @@ -343,8 +343,11 @@ mod tests { error_data: Option<&[u8]>, ) { let mut sender = TestSender::default(); - let reporter = - EventReporter::new(TEST_COMPONENT_ID_0.id(), EXAMPLE_APID, max_event_aux_data_buf); + let reporter = EventReporter::new( + TEST_COMPONENT_ID_0.id(), + EXAMPLE_APID, + max_event_aux_data_buf, + ); assert!(reporter.is_some()); let mut reporter = reporter.unwrap(); let time_stamp_empty: [u8; 7] = [0; 7]; diff --git a/satrs/src/pus/mod.rs b/satrs/src/pus/mod.rs index 2a1853a..23743a9 100644 --- a/satrs/src/pus/mod.rs +++ b/satrs/src/pus/mod.rs @@ -1507,7 +1507,8 @@ pub mod tests { let (tm_tx, tm_rx) = mpsc::sync_channel(10); let verif_cfg = VerificationReporterCfg::new(TEST_APID, 1, 2, 8).unwrap(); - let verification_handler = VerificationReporter::new(TEST_COMPONENT_ID_0.id(), &verif_cfg); + let verification_handler = + VerificationReporter::new(TEST_COMPONENT_ID_0.id(), &verif_cfg); let test_srv_tm_sender = TmInSharedPoolSender::new(shared_tm_pool.clone(), tm_tx); let in_store_converter = EcssTcInSharedStoreConverter::new(shared_tc_pool.clone(), 2048); @@ -1595,7 +1596,8 @@ pub mod tests { let (tm_tx, tm_rx) = mpsc::channel(); let verif_cfg = VerificationReporterCfg::new(TEST_APID, 1, 2, 8).unwrap(); - let verification_handler = VerificationReporter::new(TEST_COMPONENT_ID_0.id(), &verif_cfg); + let verification_handler = + VerificationReporter::new(TEST_COMPONENT_ID_0.id(), &verif_cfg); let in_store_converter = EcssTcInVecConverter::default(); ( Self { @@ -1615,7 +1617,9 @@ pub mod tests { } impl PusServiceHandlerWithVecCommon { - pub fn new_with_test_verif_sender(id: ComponentId) -> ( + pub fn new_with_test_verif_sender( + id: ComponentId, + ) -> ( Self, PusServiceHelper< MpscTcReceiver,