Skip to content

Commit

Permalink
Clippy nightly: replace a "while let" with a "for" loop
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed May 25, 2021
1 parent f0549b2 commit 559271a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-test/src/transcript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ where
C: Service<R, Response = S>,
C::Error: Into<Error>,
{
while let Some((req, expected_rsp)) = self.messages.next() {
for (req, expected_rsp) in &mut self.messages {
// These unwraps could propagate errors with the correct
// bound on C::Error
let fut = to_check
Expand Down

0 comments on commit 559271a

Please sign in to comment.