Remove unnecessary lamda on emitter map.
This commit is contained in:
@@ -155,8 +155,7 @@ pub fn run_compiler(
|
||||
),
|
||||
}
|
||||
}
|
||||
let diagnostic_output =
|
||||
emitter.map(|emitter| DiagnosticOutput::Raw(emitter)).unwrap_or(DiagnosticOutput::Default);
|
||||
let diagnostic_output = emitter.map(DiagnosticOutput::Raw).unwrap_or(DiagnosticOutput::Default);
|
||||
let matches = match handle_options(&args) {
|
||||
Some(matches) => matches,
|
||||
None => return Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user