From 994f7c7924f7fccde5c474644f6d22115586bdee Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 14 Mar 2023 00:50:38 -0700 Subject: [PATCH] Format with rustfmt 1.5.2-nightly --- serde/src/de/impls.rs | 5 ++++- serde/src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/serde/src/de/impls.rs b/serde/src/de/impls.rs index b366e891e..a2e2c4856 100644 --- a/serde/src/de/impls.rs +++ b/serde/src/de/impls.rs @@ -747,7 +747,10 @@ macro_rules! forwarded_impl { } } -#[cfg(all(any(feature = "std", all(not(no_core_cstr), feature = "alloc")), not(no_de_boxed_c_str)))] +#[cfg(all( + any(feature = "std", all(not(no_core_cstr), feature = "alloc")), + not(no_de_boxed_c_str) +))] forwarded_impl!((), Box, CString::into_boxed_c_str); #[cfg(not(no_core_reverse))] diff --git a/serde/src/lib.rs b/serde/src/lib.rs index 69f1397ff..174db813e 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -225,7 +225,7 @@ mod lib { pub use std::ffi::CStr; #[cfg(all(not(no_core_cstr), feature = "alloc", not(feature = "std")))] - pub use alloc::ffi::{CString}; + pub use alloc::ffi::CString; #[cfg(feature = "std")] pub use std::ffi::CString;