Skip to content

Commit 7cf4f44

Browse files
committed
Fix output capturing
1 parent b66dbe8 commit 7cf4f44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clippy_dev/src/fmt.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,11 @@ fn exec(
141141
println!("{}", format_command(&program, &dir, args));
142142
}
143143

144-
let child = Command::new(&program).current_dir(&dir).args(args.iter()).spawn()?;
145-
let output = child.wait_with_output()?;
144+
let output = Command::new(&program)
145+
.current_dir(&dir)
146+
.args(args.iter())
147+
.output()
148+
.unwrap();
146149
let success = output.status.success();
147150

148151
if !context.check && !success {

0 commit comments

Comments
 (0)