Skip to content
Myr

make Result more flexible

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

authored by amesgen · committed by GitHub · parent 0370499 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/lib.rs+1 added-1 removed
218 unmodified lines
219/// println!("cluster info: {:#?}", map);220/// Ok(())221/// }222/// ```223pub type Result<T> = std::result::Result<T, Error>;223pub type Result<T, E = Error> = std::result::Result<T, E>;224225/// Return early with an error.226///227/// This macro is equivalent to `return Err(From::from($err))`.
186 unmodified lines