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

der: enable arithmetic and casting clippy lints #579

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Apr 5, 2022

Enables the following lints globally:

  • clippy::cast_lossless
  • clippy::cast_possible_truncation
  • clippy::cast_possible_wrap
  • clippy::cast_precision_loss
  • clippy::cast_sign_loss
  • clippy::checked_conversions
  • clippy::implicit_saturating_sub
  • clippy::integer_arithmetic

Some code related to datetime-handling and ASN.1 REAL has been grandfathered in and allows these lints, although it's been labeled with TODOs to convert it to checked arithmetic.

Enables the following lints globally:

- `clippy::cast_lossless`
- `clippy::cast_possible_truncation`
- `clippy::cast_possible_wrap`
- `clippy::cast_precision_loss`
- `clippy::cast_sign_loss`
- `clippy::checked_conversions`
- `clippy::implicit_saturating_sub`
- `clippy::integer_arithmetic`

Some code related to datetime-handling and ASN.1 REAL has been
grandfathered in and allows these lints, although it's been labeled with
TODOs to convert it to checked arithmetic.
@tarcieri tarcieri force-pushed the der/arithmetic-and-casting-clippy-lints branch from f1e1884 to 97607e1 Compare April 5, 2022 15:08
@tarcieri tarcieri merged commit 2633ce6 into master Apr 5, 2022
@tarcieri tarcieri deleted the der/arithmetic-and-casting-clippy-lints branch April 5, 2022 15:27
@tarcieri tarcieri mentioned this pull request May 8, 2022
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.

1 participant