Skip to content
Myr

Fix serde::de::StdError in no-std unstable build

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 7b09ccc · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:serde/src/de/mod.rs+4 added-1 removed
124 unmodified lines
125mod utf8;126127pub use self::ignored_any::IgnoredAny;128129#[cfg(all(feature = "unstable", not(feature = "std")))]130#[doc(no_inline)]131pub use core::error::Error as StdError;132#[cfg(feature = "std")]133#[doc(no_inline)]134pub use std::error::Error as StdError;132#[cfg(not(feature = "std"))]135#[cfg(not(any(feature = "std", feature = "unstable")))]136#[doc(no_inline)]137pub use std_error::Error as StdError;138139////////////////////////////////////////////////////////////////////////////////
2159 unmodified lines