about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-06-13 15:48:40 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-06-13 15:48:40 +0900
commit77d6176e69de8bcdc15a12402ce7245f06ca2329 (patch)
tree0f5bc75e1ef4e5e214bdb5ff3a427eef331df792 /compiler/rustc_interface/src
parentc570ab5a0bc2d5a553d0eeaa9923a1c05c84e64e (diff)
downloadrust-77d6176e69de8bcdc15a12402ce7245f06ca2329.tar.gz
rust-77d6176e69de8bcdc15a12402ce7245f06ca2329.zip
remove unnecessary `to_string` and `String::new`
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index 3c867e308c4..389e6483f30 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -449,7 +449,7 @@ pub fn configure_and_expand(
                     .span_suggestion(
                         first_span,
                         "try using their name instead",
-                        "ferris".to_string(),
+                        "ferris",
                         Applicability::MaybeIncorrect,
                     )
                     .emit();