Skip to content

Commit 92d686f

Browse files
committed
Fix serde::de::StdError in no-std unstable build
1 parent 7b09ccc commit 92d686f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

serde/src/de/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,13 @@ mod utf8;
126126

127127
pub use self::ignored_any::IgnoredAny;
128128

129+
#[cfg(all(feature = "unstable", not(feature = "std")))]
130+
#[doc(no_inline)]
131+
pub use core::error::Error as StdError;
129132
#[cfg(feature = "std")]
130133
#[doc(no_inline)]
131134
pub use std::error::Error as StdError;
132-
#[cfg(not(feature = "std"))]
135+
#[cfg(not(any(feature = "std", feature = "unstable")))]
133136
#[doc(no_inline)]
134137
pub use std_error::Error as StdError;
135138

0 commit comments

Comments
 (0)