Rollup merge of #96023 - matthiaskrgr:clippyper1304, r=lcnr
couple of clippy::perf fixes
This commit is contained in:
commit
91847c43cc
6 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue