Skip to content

Commit 27e05f6

Browse files
committed
remote-test-client: apply considerable clippy suggestions
Signed-off-by: onur-ozkan <[email protected]>
1 parent be99e19 commit 27e05f6

File tree

1 file changed

+4
-6
lines changed
  • src/tools/remote-test-client/src

1 file changed

+4
-6
lines changed

src/tools/remote-test-client/src/main.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -317,13 +317,11 @@ fn run(support_lib_count: usize, exe: String, all_args: Vec<String>) {
317317
t!(io::copy(&mut (&mut client).take(amt), &mut stdout));
318318
t!(stdout.flush());
319319
}
320+
} else if amt == 0 {
321+
stderr_done = true;
320322
} else {
321-
if amt == 0 {
322-
stderr_done = true;
323-
} else {
324-
t!(io::copy(&mut (&mut client).take(amt), &mut stderr));
325-
t!(stderr.flush());
326-
}
323+
t!(io::copy(&mut (&mut client).take(amt), &mut stderr));
324+
t!(stderr.flush());
327325
}
328326
}
329327

0 commit comments

Comments
 (0)