mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
bbc22e2ef3
Add lint to check for boolean comparison in assert macro calls This PR adds a lint to check if an assert macro is using a boolean as "comparison value". For example: ```rust assert_eq!("a".is_empty(), false); ``` Could be rewritten as: ```rust assert!(!"a".is_empty()); ``` PS: The dev guidelines are amazing. Thanks a lot for writing them! changelog: Add `bool_assert_comparison` lint |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |