Appearance
Source Code
Checks for redundant arithmetic operations like x + 0, x - 0, x * 1, x / 1
x + 0
x - 0
x * 1
x / 1
fn main() { let x = 42; let _y = x * 1; }
Can be simplified to
fn main() { let x = 42; let _y = x; }