clippy: fix enum_glob_use lint#2240
Conversation
|
Hmm, I think this is one where we should make the decision to not include it in the big list. I'm not sure I like the impact this one has on our code base. |
|
I think that the lint’s suggested fix should favor using the fully qualified enumeration variant name instead of importing the variants into scope, see rust-lang/rust-clippy#16900. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2240 +/- ##
==========================================
- Coverage 83.59% 83.48% -0.12%
==========================================
Files 93 94 +1
Lines 21644 21669 +25
==========================================
- Hits 18094 18091 -3
- Misses 3550 3578 +28
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
f07d134 to
d2fe699
Compare
d2fe699 to
fd8b0be
Compare
|
@xtqqczze I didn't realize you had already made the changeover to the other type of fix. This way indeed looks much better and I would like to merge this. Are there reasons you still kept it as draft? |
https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#enum_glob_use