Rust logoRust/
RS-E1003

Found occurrence of `.step_by(0)`RS-E1003

Critical severityCritical
Bug Risk categoryBug Risk

Calling .step_by(0) on an iterator panics. Consider using panic! if this is intentional.

Bad Practice

[1, 2, 3].iter().step_by(0);

for _ in (0..100).step_by(0) {
    // ...
}

References