diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-06-17 12:21:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-17 12:21:50 +0200 |
| commit | 847e692b050e34ea2a42bc4dd0c933d8ed1387ef (patch) | |
| tree | 279b8f0454fa9e4af92080715df800557ba277ff /src | |
| parent | 4793397f1105e5c8ef04a736a18ef32df8a49d2f (diff) | |
| parent | 2135331a3352fa81dcb8592daa435d7a32d93ca0 (diff) | |
| download | rust-847e692b050e34ea2a42bc4dd0c933d8ed1387ef.tar.gz rust-847e692b050e34ea2a42bc4dd0c933d8ed1387ef.zip | |
Rollup merge of #98191 - TaKO8Ki:remove-rest-of-unnecessary-to-string, r=Dylan-DPC
Remove the rest of unnecessary `to_string` I removed most of unnecessary `to_string` in #98043. This patch removes the rest of them I missed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/clippy/clippy_utils/src/sugg.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_utils/src/sugg.rs b/src/tools/clippy/clippy_utils/src/sugg.rs index 4d21ba8bd1d..aa119539b1b 100644 --- a/src/tools/clippy/clippy_utils/src/sugg.rs +++ b/src/tools/clippy/clippy_utils/src/sugg.rs @@ -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); } } |
