Remove a bool for color in favor of the WriteColor trait wrapping colored and uncolored printing

This commit is contained in:
Oli Scherer 2023-07-26 13:58:50 +00:00
parent 9a0af82781
commit 084c90a305

View file

@ -719,7 +719,6 @@ fn check_code(cx: &LateContext<'_>, text: &str, edition: Edition, span: Span) {
let emitter = EmitterWriter::new(
Box::new(io::sink()),
fallback_bundle,
false,
);
let handler = Handler::with_emitter(Box::new(emitter)).disable_warnings();
let sess = ParseSess::with_span_handler(handler, sm);