mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
a108a3bd8e
- 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.