rust/clippy_lints
Samuel Tardieu 8602faa6ff
Optimize needless_bool lint
Two optimizations have been done when checking for the context in which
to apply the lint:

- Checking for the mere presence of comments does not require building a
  `String` with the comment to then check if it is empty and discard it.
- Checking for the presence of comment can be done after we have checked
  that we do have a `if` construct that we intend to lint instead of for
  every expression.
2025-08-06 19:49:22 +02:00
..
2025-08-06 19:49:22 +02:00

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