]> git.lizzy.rs Git - rust.git/commitdiff
Do not render coloful json in rustdoc
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Tue, 2 Apr 2019 12:48:43 +0000 (14:48 +0200)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Tue, 2 Apr 2019 14:14:59 +0000 (16:14 +0200)
src/librustdoc/config.rs

index a2acb02c339f891590651b935324cae2be9d1152..38f0026840654c74f931ada56132933f08bee3d2 100644 (file)
@@ -260,11 +260,11 @@ pub fn from_matches(matches: &getopts::Matches) -> Result<Options, i32> {
             Some("human") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Default(color)),
             Some("json") => ErrorOutputType::Json {
                 pretty: false,
-                json_rendered: HumanReadableErrorType::Default(color),
+                json_rendered: HumanReadableErrorType::Default(ColorConfig::Never),
             },
             Some("pretty-json") => ErrorOutputType::Json {
                 pretty: true,
-                json_rendered: HumanReadableErrorType::Default(color),
+                json_rendered: HumanReadableErrorType::Default(ColorConfig::Never),
             },
             Some("short") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Short(color)),
             Some(arg) => {