mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 20:36:03 +00:00
- Take a `Vec` instead of an iterator, because that's all that is needed. - Do an early return for the "no bugs" case. - Use `enumerate` and an `i == 0` test to identify the first bug. Those changes mean the `no_bug` variable can be removed, which I found hard to read.