eq_op false positive with floats #1466
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
Consider the following function:
The
eq_op
warning is wrong here since floats only implementPartialOrd
and doingv != v
allows me to detect them in a generic context:Maybe a solution is to check whether the result of the expression returns something that implements
Ord
or not?The text was updated successfully, but these errors were encountered: