1
Fork 0

Default to use colored ANSI diagnostics

This commit is contained in:
Ian Chamberlain 2022-12-28 09:41:24 -05:00
parent 1b8141b54c
commit 40207906f4
No known key found for this signature in database
GPG key ID: BD7B25D58170E124

View file

@ -297,8 +297,12 @@ impl FlycheckActor {
let mut cmd = Command::new(toolchain::cargo()); let mut cmd = Command::new(toolchain::cargo());
cmd.arg(command); cmd.arg(command);
cmd.current_dir(&self.root); cmd.current_dir(&self.root);
cmd.args(["--workspace", "--message-format=json", "--manifest-path"]) cmd.args([
.arg(self.root.join("Cargo.toml").as_os_str()); "--workspace",
"--message-format=json-diagnostic-rendered-ansi",
"--manifest-path",
])
.arg(self.root.join("Cargo.toml").as_os_str());
for target in target_triples { for target in target_triples {
cmd.args(["--target", target.as_str()]); cmd.args(["--target", target.as_str()]);