Skip to content
Myr

Add a Result type alias

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent df575e5 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:src/lib.rs+3 added
6 unmodified lines
7pub use crate::as_error::AsError;8pub use crate::context::Context;9pub use crate::error::{Error, Errors};1011/// `Result<T, Error>`12pub type Result<T> = std::result::Result<T, Error>;1314/// Return early with an error.15///16/// This macro is equivalent to `return Err(From::from($err))`.17#[macro_export]
16 unmodified lines