Skip to content

Commit 141544a

Browse files
authored
Remove unnecessary lamda on emitter map.
1 parent 28928c7 commit 141544a

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_driver/src

1 file changed

+1
-2
lines changed

compiler/rustc_driver/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ pub fn run_compiler(
155155
),
156156
}
157157
}
158-
let diagnostic_output =
159-
emitter.map(|emitter| DiagnosticOutput::Raw(emitter)).unwrap_or(DiagnosticOutput::Default);
158+
let diagnostic_output = emitter.map(DiagnosticOutput::Raw).unwrap_or(DiagnosticOutput::Default);
160159
let matches = match handle_options(&args) {
161160
Some(matches) => matches,
162161
None => return Ok(()),

0 commit comments

Comments
 (0)