From 77d6176e69de8bcdc15a12402ce7245f06ca2329 Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Mon, 13 Jun 2022 15:48:40 +0900 Subject: remove unnecessary `to_string` and `String::new` --- compiler/rustc_interface/src/passes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_interface/src') 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(); -- cgit 1.4.1-3-g733a5