We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66dbe8 commit 7cf4f44Copy full SHA for 7cf4f44
clippy_dev/src/fmt.rs
@@ -141,8 +141,11 @@ fn exec(
141
println!("{}", format_command(&program, &dir, args));
142
}
143
144
- let child = Command::new(&program).current_dir(&dir).args(args.iter()).spawn()?;
145
- let output = child.wait_with_output()?;
+ let output = Command::new(&program)
+ .current_dir(&dir)
146
+ .args(args.iter())
147
+ .output()
148
+ .unwrap();
149
let success = output.status.success();
150
151
if !context.check && !success {
0 commit comments