Skip to content

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