mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 10:03:37 +00:00
4f82dd83df
Lint for bool to integer casts in `cast_lossless` The lint description says > Checks for casts between *numerical* types that may be replaced by safe conversion functions. Which is strictly speaking being violated here, but it seems within the spirit of the lint. I think it is still a useful lint to have, and having a different lint for just this feels excessive. Thoughts? Fixes #7947 changelog: Lint for bool to integer casts in [`cast_lossless`] |
||
---|---|---|
.. | ||
cast_lossless.rs | ||
cast_possible_truncation.rs | ||
cast_possible_wrap.rs | ||
cast_precision_loss.rs | ||
cast_ptr_alignment.rs | ||
cast_ref_to_mut.rs | ||
cast_sign_loss.rs | ||
char_lit_as_u8.rs | ||
fn_to_numeric_cast.rs | ||
fn_to_numeric_cast_any.rs | ||
fn_to_numeric_cast_with_truncation.rs | ||
mod.rs | ||
ptr_as_ptr.rs | ||
unnecessary_cast.rs | ||
utils.rs |