Closed 0xLucqs closed 2 months ago
Most likely due to legacy this pattern is quite common:
loop { match span.pop_front() { Option::Some(val) => do_something(val), Option::None => break, } }
This is not good and can be rewrote to
for val in vec { do_something(val) }
Most likely due to legacy this pattern is quite common:
This is not good and can be rewrote to