This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit a108a3b
committed
Tweak
- 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.flush_delayed.1 parent 757d6f6 commit a108a3b
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1543 | 1543 | | |
1544 | 1544 | | |
1545 | 1545 | | |
1546 | | - | |
| 1546 | + | |
1547 | 1547 | | |
1548 | 1548 | | |
1549 | | - | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1550 | 1553 | | |
1551 | 1554 | | |
1552 | | - | |
| 1555 | + | |
1553 | 1556 | | |
1554 | 1557 | | |
1555 | 1558 | | |
| |||
1564 | 1567 | | |
1565 | 1568 | | |
1566 | 1569 | | |
1567 | | - | |
1568 | | - | |
1569 | 1570 | | |
1570 | | - | |
| 1571 | + | |
1571 | 1572 | | |
1572 | 1573 | | |
1573 | 1574 | | |
1574 | | - | |
1575 | 1575 | | |
1576 | 1576 | | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1577 | 1580 | | |
1578 | 1581 | | |
1579 | 1582 | | |
| |||
1589 | 1592 | | |
1590 | 1593 | | |
1591 | 1594 | | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
| 1595 | + | |
1595 | 1596 | | |
1596 | 1597 | | |
1597 | 1598 | | |
| |||
0 commit comments