From 2ab171ca725ee955fbec2027a7a1a58a1695db4b Mon Sep 17 00:00:00 2001 From: Joshua Salzedo Date: Tue, 11 May 2021 12:47:26 -0700 Subject: [PATCH] cargo fmt --- src/defmt.rs | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/defmt.rs b/src/defmt.rs index 014faf8c37..94c3c068bc 100644 --- a/src/defmt.rs +++ b/src/defmt.rs @@ -3,8 +3,8 @@ use crate::ArrayLength; use crate::Vec; -use defmt::Formatter; use as_slice::AsSlice; +use defmt::Formatter; impl defmt::Format for Vec where @@ -49,7 +49,7 @@ mod tests { let index = defmt::export::fetch_string_index(); let mut f = defmt::InternalFormatter::new(); - let g = defmt::Formatter{inner: &mut f}; + let g = defmt::Formatter { inner: &mut f }; val.format(g); f.finalize(); } diff --git a/src/lib.rs b/src/lib.rs index d222743a02..c566c41b41 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -99,6 +99,8 @@ mod de; mod ser; pub mod binary_heap; +#[cfg(feature = "defmt-impl")] +mod defmt; pub mod i; #[cfg(all(has_cas, feature = "cas"))] pub mod mpmc; @@ -106,8 +108,6 @@ pub mod mpmc; pub mod pool; #[cfg(has_atomics)] pub mod spsc; -#[cfg(feature = "defmt-impl")] -mod defmt; #[cfg(feature = "ufmt-impl")] mod ufmt;