Open 0xLucqs opened 1 month ago
Checks for erasing operations, e.g., x * 0.
The whole expression can be replaced by zero. This is most likely not the intended outcome and should probably be corrected
let x = 1; 0 / x; 0 * x; x & 0;
https://rust-lang.github.io/rust-clippy/master/index.html#/erasing_op
hello @0xLucqs can i work in this issue?
sure and i can help if you're stuck or don't know how to start don't hesitate to ping me
ok, thanks for the opportunity
What it does
Checks for erasing operations, e.g., x * 0.
Why is this bad?
The whole expression can be replaced by zero. This is most likely not the intended outcome and should probably be corrected
Example
https://rust-lang.github.io/rust-clippy/master/index.html#/erasing_op