Any reason why this wasn't preferred?
let foo_result = foo()
.map_err(Bar::Fail)?; let foo_result = foo()
.map_err(Bar::Fail)?;You can write it like this:
let foo_result = match foo() {
Ok(v) => v,
Err(e) => return Bar::Fail(e)
};