From cd4f409436c46f6ee3f5b4a7e8299dcee88a387b Mon Sep 17 00:00:00 2001 From: hecmas Date: Fri, 20 Dec 2024 08:00:32 +0000 Subject: [PATCH] cargo fmt --- state-machines/mem/src/input_data_sm.rs | 7 ++----- state-machines/mem/src/rom_data.rs | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/state-machines/mem/src/input_data_sm.rs b/state-machines/mem/src/input_data_sm.rs index 4b2b6183..ae75b82a 100644 --- a/state-machines/mem/src/input_data_sm.rs +++ b/state-machines/mem/src/input_data_sm.rs @@ -45,11 +45,8 @@ impl InputDataSM { pub fn new(wcm: Arc>, std: Arc>) -> Arc { let pctx = wcm.get_pctx(); let air = pctx.pilout.get_air(ZISK_AIRGROUP_ID, INPUT_DATA_AIR_IDS[0]); - let input_data_sm = Self { - wcm: wcm.clone(), - std: std.clone(), - registered_predecessors: AtomicU32::new(0), - }; + let input_data_sm = + Self { wcm: wcm.clone(), std: std.clone(), registered_predecessors: AtomicU32::new(0) }; let input_data_sm = Arc::new(input_data_sm); wcm.register_component( diff --git a/state-machines/mem/src/rom_data.rs b/state-machines/mem/src/rom_data.rs index 8951eb1d..bac99dfb 100644 --- a/state-machines/mem/src/rom_data.rs +++ b/state-machines/mem/src/rom_data.rs @@ -41,11 +41,8 @@ impl RomDataSM { pub fn new(wcm: Arc>, std: Arc>) -> Arc { let pctx = wcm.get_pctx(); let air = pctx.pilout.get_air(ZISK_AIRGROUP_ID, ROM_DATA_AIR_IDS[0]); - let rom_data_sm = Self { - wcm: wcm.clone(), - std: std.clone(), - registered_predecessors: AtomicU32::new(0), - }; + let rom_data_sm = + Self { wcm: wcm.clone(), std: std.clone(), registered_predecessors: AtomicU32::new(0) }; let rom_data_sm = Arc::new(rom_data_sm); wcm.register_component(rom_data_sm.clone(), Some(ZISK_AIRGROUP_ID), Some(ROM_DATA_AIR_IDS));