remote-test-client: apply considerable clippy suggestions

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-06-06 21:02:08 +03:00
parent c755df2d35
commit 5aa3fbce61

View file

@ -317,13 +317,11 @@ fn run(support_lib_count: usize, exe: String, all_args: Vec<String>) {
t!(io::copy(&mut (&mut client).take(amt), &mut stdout));
t!(stdout.flush());
}
} else if amt == 0 {
stderr_done = true;
} else {
if amt == 0 {
stderr_done = true;
} else {
t!(io::copy(&mut (&mut client).take(amt), &mut stderr));
t!(stderr.flush());
}
t!(io::copy(&mut (&mut client).take(amt), &mut stderr));
t!(stderr.flush());
}
}