Skip to content
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

feat: enhance Clippy linting directives #15

Merged
merged 20 commits into from
Mar 15, 2024
Merged

Conversation

allan2
Copy link
Contributor

@allan2 allan2 commented Mar 15, 2024

This PR introduces new linting directives with pedantic and nursery groups.
It has been applied crate-wide, fixing a few hundred lints.

One lint rule, one commit.

Performance/accuracy:

  • suboptimal_flops (mul_add, to_radians, to_degrees)
  • imprecise_flops (cbrt, hypot, exp_m1)
  • float_cmp

Control flow:

  • most other lints

Breaking:

  • needless_pass_by_value

Some lints are skipped, as denoted in lib.rs with comments.

Closes #14

@Aiving
Copy link
Owner

Aiving commented Mar 15, 2024

Wow, an incredible amount of work has been done! After reviewing the contents of the commit, I think it can be merged. I will also add this to the CHANGELOG soon.

@Aiving Aiving merged commit c88186e into Aiving:master Mar 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Clippy lints
2 participants