From 6b7d2e1a5f58670ee0942b8ef6de1ee2b02c210f Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 24 Aug 2022 13:20:04 +1000 Subject: [PATCH] Fix a clippy lint --- zebra-test/src/command.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/zebra-test/src/command.rs b/zebra-test/src/command.rs index 3cbc0bf39a9..9f1e5ffac7f 100644 --- a/zebra-test/src/command.rs +++ b/zebra-test/src/command.rs @@ -714,9 +714,7 @@ impl TestChild { Err(report) => { // Read all the log lines for error context self.stdout = Some(lines); - let error = Err(report).context_from(self); - - error + Err(report).context_from(self) } } } @@ -748,9 +746,7 @@ impl TestChild { Err(report) => { // Read all the log lines for error context self.stderr = Some(lines); - let error = Err(report).context_from(self); - - error + Err(report).context_from(self) } } }