This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 4b5fcae
committed
Auto merge of rust-lang#102536 - scottmcm:lookup_line-tweak, r=jackh726
Shorten the `lookup_line` code slightly
The `match` looks like it's exactly the same as `checked_sub(1)`, so we might as well see if perf says we can just do that to save a couple lines.1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1631 | 1631 | | |
1632 | 1632 | | |
1633 | 1633 | | |
1634 | | - | |
1635 | | - | |
1636 | | - | |
1637 | | - | |
| 1634 | + | |
1638 | 1635 | | |
1639 | 1636 | | |
1640 | 1637 | | |
| |||
0 commit comments