diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-06-13 16:01:16 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-06-13 16:01:16 +0900 |
| commit | d02499794373b25af281e69a52a7a0608f7b3bfd (patch) | |
| tree | 3b64bc92d7679b87e5dc71723c46329c53c0b9d4 | |
| parent | f2d9acfc019c132635d419f14f6b09ee222a1103 (diff) | |
| download | rust-d02499794373b25af281e69a52a7a0608f7b3bfd.tar.gz rust-d02499794373b25af281e69a52a7a0608f7b3bfd.zip | |
remove unnecessary `to_string` and `String::new` for `tool_only_span_suggestion`
| -rw-r--r-- | clippy_lints/src/needless_late_init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/needless_late_init.rs b/clippy_lints/src/needless_late_init.rs index d8982ffcf66..1f8c4c85cc2 100644 --- a/clippy_lints/src/needless_late_init.rs +++ b/clippy_lints/src/needless_late_init.rs @@ -281,7 +281,7 @@ fn check<'tcx>( diag.tool_only_span_suggestion( local_stmt.span, "remove the local", - String::new(), + "", Applicability::MachineApplicable, ); |
