From 6fae1af77dbfc80b986427ad5a06d96565702c38 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Sun, 23 Oct 2022 12:57:03 -0400 Subject: Rename UnexpectedError --- src/exun.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/exun.rs') 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 { - /// 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 From for Exun { } #[cfg(feature = "alloc")] -impl From for Exun { - fn from(ue: UnexpectedError) -> Self { +impl From for Exun { + fn from(ue: RawUnexpected) -> Self { Unexpected(ue) } } -- cgit v1.2.3