Lint for is_empty
doesn't show the required negation in the error message
#4304
Labels
good-first-issue
These issues are a good way to get started with Clippy
L-suggestion
Lint: Improving, adding or fixing lint suggestions
Lints:
The problem is that if user only reads the first part of the message, they will accidentally flip the condition to
v.is_empty()
. This is a problem reported in the user forum.It'd be safer to include negation whenever
is_empty
is mentioned:The text was updated successfully, but these errors were encountered: