Rollup merge of #77673 - heckad:patch-2, r=lcnr
Remove unnecessary lamda on emitter map.
This commit is contained in:
commit
48c1ca15bb
1 changed files with 1 additions and 2 deletions
|
@ -155,8 +155,7 @@ pub fn run_compiler(
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let diagnostic_output =
|
let diagnostic_output = emitter.map_or(DiagnosticOutput::Default, DiagnosticOutput::Raw);
|
||||||
emitter.map(|emitter| DiagnosticOutput::Raw(emitter)).unwrap_or(DiagnosticOutput::Default);
|
|
||||||
let matches = match handle_options(&args) {
|
let matches = match handle_options(&args) {
|
||||||
Some(matches) => matches,
|
Some(matches) => matches,
|
||||||
None => return Ok(()),
|
None => return Ok(()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue