Optimization #4591: Fix Rust clippy lints
Fix warning about "this loop never actually loops"
Beginner, Good First Issue, Outreachy, Rust
We are working on cleaning our Rust code from lint warnings.
For resolving this issue, please check the rust code and fix warnings related to "this loop never actually loops".
For more details on this warning, checkhttps://rust-lang.github.io/rust-clippy/master/index.html#never_loop
More information on the parent issue.