Commit c4b2fed
authored
A few updates to the lint set (#122)
Having used
[`clippy::default_trait_access`](https://rust-lang.github.io/rust-clippy/stable/index.html#default_trait_access)
as an editor lint, I'm really happy with it. It also only ever makes
extremely local suggestions (making addressing it when writing a change
trivial), and significantly improves readability in a lot of cases. It's
also something which I've now found myself suggesting regularly in PR
reviews, as better style.
As such, I'm proposing that we move this into the proper lint set.
Separately,
[`unused_qualifications`](https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#unused-qualifications)
is good for consistency (if you see `Rect` and `kurbo::Rect` next to
each other, you might reasonably assume that they are different types).
As such, I'm also proposing that we move this into the "proper" lint set
out of the periodic lints.
This proposal is more marginal, and I'm happy to demote it back to a
periodic lint if there's pushback.
Thirdly, I'm proposing removed the editor lints as a class; I don't
think anyone ever used them, and the theory that you can make drive-by
style fixes in otherwise unrelated PRs was never sound.1 parent 983faa1 commit c4b2fed
1 file changed
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
107 | | - | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 125 | | |
136 | 126 | | |
137 | 127 | | |
| |||
0 commit comments