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;