bool_assert_comparison
improve the suggestion to include the expression
#7598
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
L-style
Lint: Belongs in the style lint group
The lint message for the
bool_assert_comparison
lint currently look like this:I think the suggestion can be improved to include the actual expression that should be put in the
assert!
instead of just having the placeholder..
.The text for the suggestion can be retrieved with functions from
clippy_utils::source
.The text was updated successfully, but these errors were encountered: