Skip to content

Commit

Permalink
Fix serde::de::StdError in no-std unstable build
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 28, 2023
1 parent 7b09ccc commit 92d686f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion serde/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,13 @@ mod utf8;

pub use self::ignored_any::IgnoredAny;

#[cfg(all(feature = "unstable", not(feature = "std")))]
#[doc(no_inline)]
pub use core::error::Error as StdError;
#[cfg(feature = "std")]
#[doc(no_inline)]
pub use std::error::Error as StdError;
#[cfg(not(feature = "std"))]
#[cfg(not(any(feature = "std", feature = "unstable")))]
#[doc(no_inline)]
pub use std_error::Error as StdError;

Expand Down

0 comments on commit 92d686f

Please sign in to comment.