Skip to content

Commit 4020790

Browse files
Default to use colored ANSI diagnostics
1 parent 1b8141b commit 4020790

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/flycheck/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,12 @@ impl FlycheckActor {
297297
let mut cmd = Command::new(toolchain::cargo());
298298
cmd.arg(command);
299299
cmd.current_dir(&self.root);
300-
cmd.args(["--workspace", "--message-format=json", "--manifest-path"])
301-
.arg(self.root.join("Cargo.toml").as_os_str());
300+
cmd.args([
301+
"--workspace",
302+
"--message-format=json-diagnostic-rendered-ansi",
303+
"--manifest-path",
304+
])
305+
.arg(self.root.join("Cargo.toml").as_os_str());
302306

303307
for target in target_triples {
304308
cmd.args(["--target", target.as_str()]);

0 commit comments

Comments
 (0)