-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
[Merged by Bors] - General code clean-up and new lint addition #1809
Conversation
Test262 conformance changesVM implementation
|
Benchmark for 523a566Click to view benchmark
|
Benchmark for bb0c71dClick to view benchmark
|
Codecov Report
@@ Coverage Diff @@
## main #1809 +/- ##
==========================================
+ Coverage 55.49% 55.73% +0.23%
==========================================
Files 201 201
Lines 17390 17326 -64
==========================================
+ Hits 9650 9656 +6
+ Misses 7740 7670 -70
Continue to review full report at Codecov.
|
Benchmark for 4e5ea24Click to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good!
I think enforcing a more consistent style across the codebase is a good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! :)
bors r+ |
This PR adds some Clippy lints. Mainly, it adds the list of pedantic lints excluding some lints that were causing too many warnings. I also denied some useful restriction and pedantic lints, to make sure we use `Self` all the possible times (for better maintainability), and that we pass elements by reference where possible, for example, or that the documentation is properly written. This might even have some small performance gains. I also added a perfect hash function for the CLI keywords, which should be more efficient than a `HashSet`. This is something we could use elsewhere too.
Pull request successfully merged into main. Build succeeded: |
This PR adds some Clippy lints. Mainly, it adds the list of pedantic lints excluding some lints that were causing too many warnings. I also denied some useful restriction and pedantic lints, to make sure we use
Self
all the possible times (for better maintainability), and that we pass elements by reference where possible, for example, or that the documentation is properly written.This might even have some small performance gains.
I also added a perfect hash function for the CLI keywords, which should be more efficient than a
HashSet
. This is something we could use elsewhere too.