Add a Result type alias

This commit is contained in:
David Tolnay 2019-10-04 23:49:35 -04:00
parent df575e5adb
commit 8da8c97e56
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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))`.