1
Fork 0

Remove some arguments that are always the same

This commit is contained in:
Oli Scherer 2023-07-25 09:58:29 +00:00
parent ff8fe76c0e
commit 8d60f7573d
2 changed files with 7 additions and 27 deletions

View file

@ -549,21 +549,17 @@ impl Drop for HandlerInner {
impl Handler {
pub fn with_tty_emitter(
color_config: ColorConfig,
can_emit_warnings: bool,
treat_err_as_bug: Option<NonZeroUsize>,
sm: Option<Lrc<SourceMap>>,
fluent_bundle: Option<Lrc<FluentBundle>>,
fallback_bundle: LazyFallbackBundle,
ice_file: Option<PathBuf>,
) -> Self {
Self::with_tty_emitter_and_flags(
color_config,
ColorConfig::Auto,
sm,
fluent_bundle,
None,
fallback_bundle,
HandlerFlags { can_emit_warnings, treat_err_as_bug, ..Default::default() },
ice_file,
HandlerFlags { can_emit_warnings, treat_err_as_bug: None, ..Default::default() },
None,
)
}