feat: removed prelude

It was causing the rust compiler to output the renamed structs in error
messages confusing users who don't know about the old renamed ones.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2023-07-28 17:04:39 +02:00
parent aaca6945b0
commit 101d2074e1
Signed by: harald
GPG key ID: 900F3C4971086004

View file

@ -8,26 +8,6 @@ use std::error::Error as StdError;
use std::fmt::{Debug, Display, Formatter};
use std::panic::Location;
pub mod prelude {
//! convenience prelude
pub mod v1 {
//! convenience prelude
pub use super::super::Context as _;
pub use super::super::Context as ResultTrait;
pub use super::super::Error as ChainError;
pub use super::super::ErrorDown as _;
pub use super::super::ErrorDown as ChainErrorDown;
pub use super::super::Result as ChainResult;
pub use crate::err_kind as derive_err_kind;
pub use crate::str_context as derive_str_context;
}
pub mod v2 {
//! convenience prelude
pub use super::super::Context as _;
pub use super::super::ErrorDown as _;
}
}
/// chains an inner error kind `T` with a causing error
pub struct Error<T> {
occurrence: Option<String>,