From 5fc4149f08ea4341fc45c2c0c0149ac88e7cd3ad Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Tue, 2 Apr 2019 14:48:43 +0200 Subject: [PATCH] Do not render coloful json in rustdoc --- src/librustdoc/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/config.rs b/src/librustdoc/config.rs index a2acb02c339f..38f002684065 100644 --- a/src/librustdoc/config.rs +++ b/src/librustdoc/config.rs @@ -260,11 +260,11 @@ impl Options { 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) => {