Skip to content
Myr

Merge pull request #11 from amesgen/patch-1

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

make Result more flexible

authored by David Tolnay · committed by GitHub · parents 0370499, fdd6050 · 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