1
Fork 0

Replace the many arguments of EmitterWriter::stderr with builder methods

This commit is contained in:
Oli Scherer 2023-07-25 13:09:53 +00:00
parent 3be07c1161
commit 29de70da1b
9 changed files with 97 additions and 98 deletions

View file

@ -556,18 +556,7 @@ impl Handler {
sm: Option<Lrc<SourceMap>>,
fallback_bundle: LazyFallbackBundle,
) -> Self {
let emitter = Box::new(EmitterWriter::stderr(
ColorConfig::Auto,
sm,
None,
fallback_bundle,
false,
false,
None,
false,
false,
TerminalUrl::No,
));
let emitter = Box::new(EmitterWriter::stderr(ColorConfig::Auto, fallback_bundle).sm(sm));
Self::with_emitter(emitter)
}
pub fn disable_warnings(mut self) -> Self {