Skip to content

Commit

Permalink
Format with rustfmt 1.5.2-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 14, 2023
1 parent 7a8e497 commit 994f7c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion serde/src/de/impls.rs
Expand Up @@ -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<CStr>, CString::into_boxed_c_str);

#[cfg(not(no_core_reverse))]
Expand Down
2 changes: 1 addition & 1 deletion serde/src/lib.rs
Expand Up @@ -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;

Expand Down

0 comments on commit 994f7c7

Please sign in to comment.