3 ms·
Without let-else, you could write that as: let foo_unwrapped = match foo { Some(foo_unwrapped) => foo_unwrapped, None => return, }; Not as
by mintplant 4y ago
Without let-else, you could write that as:
let foo_unwrapped = match foo {
Some(foo_unwrapped) => foo_unwrapped,
None => return,
};
Not as pretty, but you don't have to unwrap.