mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-27 13:01:29 +00:00
Add a Result type alias
This commit is contained in:
parent
df575e5adb
commit
8da8c97e56
@ -8,6 +8,9 @@ pub use crate::as_error::AsError;
|
||||
pub use crate::context::Context;
|
||||
pub use crate::error::{Error, Errors};
|
||||
|
||||
/// `Result<T, Error>`
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
|
||||
/// Return early with an error.
|
||||
///
|
||||
/// This macro is equivalent to `return Err(From::from($err))`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user