From 7dfe119fe0c7b99d7a6d73af6ac3fc6f7cef9d12 Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Tue, 16 Aug 2022 01:47:18 -0400 Subject: Run cargo fmt --- examples/nrf/src/bin/rtos_trace.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/nrf/src/bin/rtos_trace.rs b/examples/nrf/src/bin/rtos_trace.rs index 461e174c9..5699fe8e2 100644 --- a/examples/nrf/src/bin/rtos_trace.rs +++ b/examples/nrf/src/bin/rtos_trace.rs @@ -7,17 +7,15 @@ use core::task::Poll; use embassy_executor::executor::Spawner; use embassy_executor::time::{Duration, Instant, Timer}; use embassy_nrf::Peripherals; - +#[cfg(feature = "log")] +use log::*; +use panic_probe as _; // N.B. systemview_target cannot be used at the same time as defmt_rtt. - use rtos_trace; use systemview_target::SystemView; -use panic_probe as _; -#[cfg(feature = "log")] -use log::*; static LOGGER: systemview_target::SystemView = systemview_target::SystemView::new(); -rtos_trace::global_trace!{SystemView} +rtos_trace::global_trace! {SystemView} struct TraceInfo(); @@ -27,7 +25,7 @@ impl rtos_trace::RtosTraceApplicationCallbacks for TraceInfo { 64000000 } } -rtos_trace::global_application_callbacks!{TraceInfo} +rtos_trace::global_application_callbacks! {TraceInfo} #[embassy_executor::task] async fn run1() { -- cgit