Skip to content

Commit 5fc4149

Browse files
committed
Do not render coloful json in rustdoc
1 parent 39b2137 commit 5fc4149

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ impl Options {
260260
Some("human") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Default(color)),
261261
Some("json") => ErrorOutputType::Json {
262262
pretty: false,
263-
json_rendered: HumanReadableErrorType::Default(color),
263+
json_rendered: HumanReadableErrorType::Default(ColorConfig::Never),
264264
},
265265
Some("pretty-json") => ErrorOutputType::Json {
266266
pretty: true,
267-
json_rendered: HumanReadableErrorType::Default(color),
267+
json_rendered: HumanReadableErrorType::Default(ColorConfig::Never),
268268
},
269269
Some("short") => ErrorOutputType::HumanReadable(HumanReadableErrorType::Short(color)),
270270
Some(arg) => {

0 commit comments

Comments
 (0)