couple of clippy::perf fixes

This commit is contained in:
Matthias Krüger 2022-04-13 22:18:28 +02:00
parent 0d13f6afeb
commit bbd7ce6904
6 changed files with 6 additions and 7 deletions

View file

@ -1208,7 +1208,7 @@ impl HandlerInner {
(0, 0) => return,
(0, _) => self.emitter.emit_diagnostic(&Diagnostic::new(
Level::Warning,
DiagnosticMessage::Str(warnings.to_owned()),
DiagnosticMessage::Str(warnings),
)),
(_, 0) => {
let _ = self.fatal(&errors);