diff options
| author | Botahamec <botahamec@outlook.com> | 2023-08-09 10:20:38 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2023-08-09 10:20:38 -0400 |
| commit | e187b45c780217faa64bce567ecf5ba20371117c (patch) | |
| tree | 9b2a5c0bca46a05337218d67de4bccb4f5efa941 /src/exun.rs | |
| parent | e45e83fc37d8f95427a29cb78a274398877f7b05 (diff) | |
Add ResultNoneExt
Diffstat (limited to 'src/exun.rs')
| -rw-r--r-- | src/exun.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/exun.rs b/src/exun.rs index 87e8610..0dcd936 100644 --- a/src/exun.rs +++ b/src/exun.rs @@ -3,7 +3,6 @@ use core::fmt::{self, Debug, Display}; #[cfg(feature = "std")] use std::error::Error; -#[cfg(feature = "alloc")] use crate::{RawUnexpected, UnexpectedError}; pub use Exun::{Expected, Unexpected}; @@ -56,14 +55,12 @@ impl<E: Error, U> From<E> for Exun<E, U> { } } -#[cfg(feature = "alloc")] impl<E> From<RawUnexpected> for Exun<E, RawUnexpected> { fn from(ue: RawUnexpected) -> Self { Unexpected(ue) } } -#[cfg(feature = "alloc")] impl<E> From<RawUnexpected> for Exun<E, UnexpectedError> { fn from(ue: RawUnexpected) -> Self { Unexpected(ue.into()) |
