Commit 94233fb
committed
Unify
Both lints share a lot of characteristics but were implemented in
unrelated ways. This unifies them, saving around 100 SLOC in the
process, and making one more test trigger the lint. Also, this removes
useless blocks in suggestions.manual_unwrap_or and manual_unwrap_or_default code1 parent a001ae3 commit 94233fb
File tree
13 files changed
+322
-349
lines changed- clippy_lints/src
- matches
- clippy_utils/src
- tests/ui
13 files changed
+322
-349
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | 338 | | |
340 | 339 | | |
341 | 340 | | |
| |||
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
| |||
960 | 959 | | |
961 | 960 | | |
962 | 961 | | |
963 | | - | |
964 | 962 | | |
965 | 963 | | |
966 | 964 | | |
| |||
This file was deleted.
0 commit comments