Fix serde:🇩🇪:StdError in no-std unstable build

This commit is contained in:
David Tolnay 2023-07-28 15:58:57 -07:00
parent 7b09cccd77
commit 92d686f9a5
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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;