bool_assert_comparison
: assert_eq! with a literal bool
#8118
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
T-macros
Type: Issues with macros and macro expansion
Description
Hi,
i have a macro which generated a function for use in unit tests which is:
Clippy indicates in this case that i should use
assert!
but this would mean that i have to write an if/else block to handle both cases.While this makes sense if i have a hardcoded boolean literal, but in this case i have macro generated boolean literals.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: