|
|
|
|
|
by andrewjf
1651 days ago
|
|
I would love to use this style but I find myself reverting back to the match syntax. match may_fail_who_knows() {
Ok(success) => {
do_something_with_success(success)?
},
Err(failed) => {
some_error_processing(failed)
}
}
As `do_something_with_success` in a closure can't early return from the function (since it's in a closure), which makes sense, but just annoying to read nested results. |
|