Rust

Rust

Made by DeepSource

Found occurrence of .step_by(0) RS-E1003

Bug risk
Critical

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