rustc: minor changes suggested by clippy perf lints.
This commit is contained in:
parent
9bd71afb90
commit
1b3733e5a4
4 changed files with 4 additions and 8 deletions
|
@ -2362,11 +2362,7 @@ impl FileWithAnnotatedLines {
|
|||
|
||||
let label = label.as_ref().map(|m| {
|
||||
normalize_whitespace(
|
||||
&emitter
|
||||
.translate_message(m, &args)
|
||||
.map_err(Report::new)
|
||||
.unwrap()
|
||||
.to_string(),
|
||||
&emitter.translate_message(m, &args).map_err(Report::new).unwrap(),
|
||||
)
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue