Fix format issues.
diff --git a/target/ast10x0/tests/peripherals/gpio/gpio_smoke/target.rs b/target/ast10x0/tests/peripherals/gpio/gpio_smoke/target.rs index 0bc2fa4..15e9192 100644 --- a/target/ast10x0/tests/peripherals/gpio/gpio_smoke/target.rs +++ b/target/ast10x0/tests/peripherals/gpio/gpio_smoke/target.rs
@@ -32,11 +32,17 @@ // so either 0 or 1 is valid in this configuration test. let mut pa0 = gpioa.pa0.into_pull_down_input(); let pa0_level = pa0.is_high().unwrap_or(false); - pw_log::info!("GPIOA0 input configured; sampled level={}", pa0_level as u32); + pw_log::info!( + "GPIOA0 input configured; sampled level={}", + pa0_level as u32 + ); let mut pa1 = gpioa.pa1.into_pull_up_input(); let pa1_level = pa1.is_high().unwrap_or(false); - pw_log::info!("GPIOA1 input configured; sampled level={}", pa1_level as u32); + pw_log::info!( + "GPIOA1 input configured; sampled level={}", + pa1_level as u32 + ); let mut pa3 = gpioa.pa3.into_open_drain_output::<ActiveLow>(); if pa3.set_low().is_err() || !pa3.is_set_low().unwrap_or(false) {
diff --git a/target/ast10x0/tests/peripherals/gpio/gpioi_loopback/target.rs b/target/ast10x0/tests/peripherals/gpio/gpioi_loopback/target.rs index 2cb5b76..49488ad 100644 --- a/target/ast10x0/tests/peripherals/gpio/gpioi_loopback/target.rs +++ b/target/ast10x0/tests/peripherals/gpio/gpioi_loopback/target.rs
@@ -103,7 +103,11 @@ return false; } let initial_level = if initial_high { "high" } else { "low" }; - pw_log::info!("{}: GPIOI0 as output drive initial level {}", name as &str, initial_level as &str); + pw_log::info!( + "{}: GPIOI0 as output drive initial level {}", + name as &str, + initial_level as &str + ); cortex_m::asm::delay(GPIO_LEVEL_DELAY_CYCLES); let input_matches = if initial_high { @@ -115,7 +119,11 @@ pw_log::error!("{}: input and output GPIO level mismatch", name as &str); return false; } - pw_log::info!("{}: GPIOI1 as input read initial level {}", name as &str, initial_level as &str); + pw_log::info!( + "{}: GPIOI1 as input read initial level {}", + name as &str, + initial_level as &str + ); input.clear_interrupt(); input.set_interrupt_mode(mode); @@ -136,7 +144,11 @@ return false; } let trigger_level = if trigger_high { "high" } else { "low" }; - pw_log::info!("{}: GPIOI0 as output drive trigger level {}", name as &str, trigger_level as &str); + pw_log::info!( + "{}: GPIOI0 as output drive trigger level {}", + name as &str, + trigger_level as &str + ); cortex_m::asm::delay(GPIO_LEVEL_DELAY_CYCLES); let input_matches = if trigger_high { @@ -149,7 +161,11 @@ input.set_interrupt_mode(InterruptMode::Disabled); return false; } - pw_log::info!("{}: GPIOI1 as input read trigger level {}", name as &str, trigger_level as &str); + pw_log::info!( + "{}: GPIOI1 as input read trigger level {}", + name as &str, + trigger_level as &str + ); if !input.get_interrupt_status() { pw_log::error!("{}: interrupt status was not set", name as &str);