RS.CLIPPY.IDENTITY_OP
Using identity operations, e.g., `x + 0` or `y / 1`
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: identity_op. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for identity operations, e.g., x + 0.
Why is this bad?
This code can be removed without changing the meaning. So it just obscures what's going on. Delete it mercilessly.
Example
x / 1 + 0 * 1 - 0 | 0;