Skip to content

Commit a556126

Browse files
authored
style: apply clippy suggestion (#693)
1 parent 3ad05fc commit a556126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testcontainers/src/core/logs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ impl WaitingStreamWrapper {
9292
self.cache.push(Ok(message.clone()));
9393
}
9494

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

0 commit comments

Comments
 (0)