rust/clippy_lints
Quinn Sinclair c2b3f5c767 identity_op correctly suggests a deference for coerced references
When `identity_op` identifies a `no_op`, provides a suggestion, it also
checks the type of the type of the variable. If the variable is
a reference that's been coerced into a value, e.g.

```
let x = &0i32;
let _ = x + 0;
```

the suggestion will now use a derefence. This is done by identifying
whether the variable is a reference to an integral value, and then
whether it gets dereferenced.

changelog: false positive: [`identity_op`]: corrected suggestion for
reference coerced to value.

fixes: #12050
2023-12-30 13:31:32 +02:00
..
src identity_op correctly suggests a deference for coerced references 2023-12-30 13:31:32 +02:00
Cargo.toml Bump Clippy version -> 0.1.77 2023-12-28 19:21:01 +01:00
README.md

This crate contains Clippy lints. For the main crate, check GitHub.