Skip to content

Commit 0a697bf

Browse files
committed
remove closure
1 parent 17469c7 commit 0a697bf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/toolchains.rs

+6-8
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,12 @@ impl Toolchain {
360360
let must_capture_output = cfg.regress_on().must_process_stderr();
361361
let emit_output = cfg.args.emit_cargo_output() || cfg.args.prompt;
362362

363-
let default_stdio = || {
364-
if must_capture_output {
365-
Stdio::piped()
366-
} else if emit_output {
367-
Stdio::inherit()
368-
} else {
369-
Stdio::null()
370-
}
363+
let default_stdio = if must_capture_output {
364+
Stdio::piped
365+
} else if emit_output {
366+
Stdio::inherit
367+
} else {
368+
Stdio::null
371369
};
372370

373371
cmd.stdout(default_stdio());

0 commit comments

Comments
 (0)