Make JsonEmitter more like HumanEmitter.
Use `derive(Setters)` to derive setters, and then change `JsonEmitter::new` to only have the arguments that are always used.
This commit is contained in:
parent
2999d8dc72
commit
9ff4487999
5 changed files with 32 additions and 58 deletions
|
|
@ -158,18 +158,15 @@ pub(crate) fn new_dcx(
|
|||
Box::new(
|
||||
JsonEmitter::new(
|
||||
Box::new(io::BufWriter::new(io::stderr())),
|
||||
None,
|
||||
source_map,
|
||||
None,
|
||||
fallback_bundle,
|
||||
pretty,
|
||||
json_rendered,
|
||||
diagnostic_width,
|
||||
false,
|
||||
unstable_opts.track_diagnostics,
|
||||
TerminalUrl::No,
|
||||
)
|
||||
.ui_testing(unstable_opts.ui_testing),
|
||||
.ui_testing(unstable_opts.ui_testing)
|
||||
.diagnostic_width(diagnostic_width)
|
||||
.track_diagnostics(unstable_opts.track_diagnostics)
|
||||
.terminal_url(TerminalUrl::No),
|
||||
)
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue