Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 805e50e

Browse files
committed
Remove unnecessary diagnostic_width call.
This `HumanEmitter` is only created to test if it supports colour. The diagnostic width isn't relevant.
1 parent 3c3f15c commit 805e50e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustdoc/doctest.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,8 @@ pub(crate) fn make_test(
576576
rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(),
577577
false,
578578
);
579-
supports_color = HumanEmitter::stderr(ColorConfig::Auto, fallback_bundle.clone())
580-
.diagnostic_width(Some(80))
581-
.supports_color();
579+
supports_color =
580+
HumanEmitter::stderr(ColorConfig::Auto, fallback_bundle.clone()).supports_color();
582581

583582
let emitter = HumanEmitter::new(Box::new(io::sink()), fallback_bundle);
584583

0 commit comments

Comments
 (0)