Open 0xLucqs opened 1 month ago
Checks for equal operands to comparison, logical and bitwise, difference and division binary operators (==, >, etc., &&, ||, &, |, ^, - and /).
==
>
&&
||
&
|
^
-
/
This is usually just a typo or a copy and paste error.
if x + 1 == x + 1 {} // or assert_eq!(a, a);
https://rust-lang.github.io/rust-clippy/master/index.html#/eq_op
This issue can be considered a good first issue?
Yeah I think so and anyway i can guide you so you know how to start or if you're stuck don't hesitate to ping me on telegram
What it does
Checks for equal operands to comparison, logical and bitwise, difference and division binary operators (
==
,>
, etc.,&&
,||
,&
,|
,^
,-
and/
).Why is this bad?
This is usually just a typo or a copy and paste error.
Example
https://rust-lang.github.io/rust-clippy/master/index.html#/eq_op