]> git.lizzy.rs Git - rust.git/commitdiff
Default to use colored ANSI diagnostics
authorIan Chamberlain <ichamberlain@juniper.net>
Wed, 28 Dec 2022 14:41:24 +0000 (09:41 -0500)
committerIan Chamberlain <ichamberlain@juniper.net>
Mon, 9 Jan 2023 16:46:29 +0000 (11:46 -0500)
crates/flycheck/src/lib.rs

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