mirror of
https://github.com/haraldh/chainerror.git
synced 2025-01-30 16:46:42 +01:00
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:
parent
aaca6945b0
commit
101d2074e1
20
src/lib.rs
20
src/lib.rs
|
@ -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>,
|
||||
|
|
Loading…
Reference in a new issue