Skip to content

Commit

Permalink
Rollup merge of rust-lang#98191 - TaKO8Ki:remove-rest-of-unnecessary-…
Browse files Browse the repository at this point in the history
…to-string, r=Dylan-DPC

Remove the rest of unnecessary `to_string`

I removed most of unnecessary `to_string` in rust-lang#98043. This patch removes the rest of them I missed.
  • Loading branch information
Dylan-DPC authored Jun 17, 2022
2 parents 51e2d6a + 72c73f8 commit 2cc798b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/sugg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ impl<T: LintContext> DiagnosticExt<T> for rustc_errors::Diagnostic {
}
}

self.span_suggestion(remove_span, msg, String::new(), applicability);
self.span_suggestion(remove_span, msg, "", applicability);
}
}

Expand Down

0 comments on commit 2cc798b

Please sign in to comment.