Skip to content

Commit

Permalink
style: apply clippy suggestion (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey authored Jul 7, 2024
1 parent 3ad05fc commit a556126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testcontainers/src/core/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ impl WaitingStreamWrapper {
self.cache.push(Ok(message.clone()));
}

let mut find_iter = msg_finder.find_iter(message.as_ref());
while let Some(_) = find_iter.next() {
let find_iter = msg_finder.find_iter(message.as_ref());
for _ in find_iter {
found_times += 1; // can't overflow, because of check below
if found_times == times {
log::debug!(
Expand Down

0 comments on commit a556126

Please sign in to comment.