From 559271a93502269629c6492a1386bbce0b6b5cb1 Mon Sep 17 00:00:00 2001 From: teor Date: Tue, 25 May 2021 10:36:43 +1000 Subject: [PATCH] Clippy nightly: replace a "while let" with a "for" loop --- zebra-test/src/transcript.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-test/src/transcript.rs b/zebra-test/src/transcript.rs index feea1b0c861..ec6fc778c1d 100644 --- a/zebra-test/src/transcript.rs +++ b/zebra-test/src/transcript.rs @@ -81,7 +81,7 @@ where C: Service, C::Error: Into, { - 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