Commit 6ff580b
committed
style(rust): drop the comments that narrated this code's history
A comment describes the code as it is. The history belongs in the commit message,
where it is attached to the diff that makes it true; in the source it is stale
for everyone who never saw the before.
The comment above the `timeout` parse goes entirely: the field's doc comment
already states the default. The zero rate-limit check states its constraint
instead, and the three test comments say what they pin.
Reported on the pull request as "No need to state the history of this code."1 parent 2910b18 commit 6ff580b
2 files changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | 290 | | |
294 | 291 | | |
295 | 292 | | |
| |||
677 | 674 | | |
678 | 675 | | |
679 | 676 | | |
680 | | - | |
681 | | - | |
| 677 | + | |
| 678 | + | |
682 | 679 | | |
683 | 680 | | |
684 | 681 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 78 | + | |
82 | 79 | | |
83 | 80 | | |
84 | 81 | | |
| |||
0 commit comments