3 ms·
The most common time this comes up for me is trying to use continue/break if a value is None/Err : loop { let thing = match foo() { Some(bar) => ba
by tiddles 6y ago
The most common time this comes up for me is trying to use continue/break if a value is None/Err :
loop {
let thing = match foo() {
Some(bar) => bar,
None => continue,
}
}
Yet I still always first try to put the continue in an unwrap_or_else first..