diff --git a/src/mpsc.rs b/src/mpsc.rs index 7bda5ad..6bf9305 100644 --- a/src/mpsc.rs +++ b/src/mpsc.rs @@ -89,6 +89,9 @@ impl fmt::Display for Closed { } } +#[cfg(feature = "std")] +impl std::error::Error for Closed {} + // === impl TrySendError === impl TrySendError { @@ -146,6 +149,9 @@ impl fmt::Display for TrySendError { } } +#[cfg(feature = "std")] +impl std::error::Error for TrySendError {} + // ==== impl Inner ==== impl ChannelCore {