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) } } }