1
Fork 0

rustc: minor changes suggested by clippy perf lints.

This commit is contained in:
Nicholas Nethercote 2023-11-06 13:06:40 +11:00
parent 9bd71afb90
commit 1b3733e5a4
4 changed files with 4 additions and 8 deletions

View file

@ -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(),
)
});