diff options
| author | Botahamec <botahamec@outlook.com> | 2023-08-09 09:55:12 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2023-08-09 09:55:12 -0400 |
| commit | a9f00c924fc816bd8103b4b05574f02fc4d1966f (patch) | |
| tree | f7f0e1bba4a8eafd24dfd82fc6856a085698b887 /src/lib.rs | |
| parent | a799c00192ac6ecc9a384bc0fce46b10b38def60 (diff) | |
Allow the ResultExunExt to be used without alloc
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -142,18 +142,19 @@ extern crate alloc; mod exun; -#[cfg(feature = "alloc")] mod result; -#[cfg(feature = "alloc")] mod unexpected; -pub use crate::exun::Exun; #[cfg(feature = "std")] pub use result::ResultErrorExt; + #[cfg(feature = "alloc")] -pub use result::{ResultExunExt, ResultMsgExt}; +pub use result::ResultMsgExt; #[cfg(feature = "alloc")] pub use unexpected::{RawUnexpected, UnexpectedError}; + +pub use crate::exun::Exun; +pub use result::ResultExunExt; pub use Exun::{Expected, Unexpected}; /// A type alias for [`Exun<E, RawUnexpected>`] |
