comparison_to_empty
not triggered if comparing Cow<'a, str>
to empty string slice
#13861
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
This is effectively the same comparison, but the lint is not triggered
Lint Name
comparison_to_empty
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
Version
The text was updated successfully, but these errors were encountered: