-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Remove enum imports from match statements #3436
Conversation
hooray I agree 🕺 |
@andrewgazelka This is a large problem in our codebase. I will (in the future) start merging in small, piecemeal PRs to address this issue. |
CodSpeed Performance ReportMerging #3436 will improve performances by ×2.1Comparing Summary
Benchmarks breakdown
|
Do we want to prio this though? BigDaft ideally if we want to enforce something should also add to clippy lints |
Probably not right now, but in the future. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3436 +/- ##
=======================================
Coverage 77.35% 77.35%
=======================================
Files 684 684
Lines 83637 83637
=======================================
Hits 64694 64694
Misses 18943 18943 |
Overview
Importing enums is extremely bad style in Rust. This can lead to nasty errors in the future when enum definitions change.
Please stop doing this.