summaryrefslogtreecommitdiff
path: root/src/exun.rs
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2022-10-23 12:57:03 -0400
committerBotahamec <botahamec@outlook.com>2022-10-23 12:57:03 -0400
commit6fae1af77dbfc80b986427ad5a06d96565702c38 (patch)
tree9c22b59255cd701c3f9f853afb06403e1ad9595b /src/exun.rs
parentf52dc60a3c83d43be2b9df0e4a6e4fa0d704a7b3 (diff)
Rename UnexpectedError
Diffstat (limited to 'src/exun.rs')
-rw-r--r--src/exun.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/exun.rs b/src/exun.rs
index b870471..5f6bb43 100644
--- a/src/exun.rs
+++ b/src/exun.rs
@@ -4,19 +4,19 @@ use core::fmt::{self, Debug, Display};
use std::error::Error;
#[cfg(feature = "alloc")]
-use crate::UnexpectedError;
+use crate::RawUnexpected;
pub use Exun::{Expected, Unexpected};
/// `Expect` is a type that represents either the expected error type
-/// ([`Expected`]) or an unexpected error ([`Unexpected`]).
+/// ([`Expected`]) or an unexpected type ([`Unexpected`]).
///
/// See the [crate documentation](self) for details.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub enum Exun<E, U> {
- /// Contains the expected error type
+ /// Contains the expected type
Expected(E),
- /// Contains an unexpected error
+ /// Contains an unexpected type
Unexpected(U),
}
@@ -47,8 +47,8 @@ impl<E: Error, U> From<E> for Exun<E, U> {
}
#[cfg(feature = "alloc")]
-impl<E> From<UnexpectedError> for Exun<E, UnexpectedError> {
- fn from(ue: UnexpectedError) -> Self {
+impl<E> From<RawUnexpected> for Exun<E, RawUnexpected> {
+ fn from(ue: RawUnexpected) -> Self {
Unexpected(ue)
}
}