Commit 9ad579f
authored
phone-number, scale-generator: use range::contains (#1036)
I'm honestly not really convinced by the phone-number one but I guess
it's one fewer mention of number_len so it's fine.
https://rust-lang.github.io/rust-clippy/master/index.html#manual_range_contains1 parent 0b3a64e commit 9ad579f
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
0 commit comments