From 85e59b7664734b3fb0122aa8d341ed7e878569c1 Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Sat, 29 Feb 2020 00:35:24 +0100 Subject: use .to_string() instead of format!() macro to create strings --- src/librustc_parse/parser/pat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustc_parse/parser') diff --git a/src/librustc_parse/parser/pat.rs b/src/librustc_parse/parser/pat.rs index 520d325f16b..4dc2f775173 100644 --- a/src/librustc_parse/parser/pat.rs +++ b/src/librustc_parse/parser/pat.rs @@ -216,7 +216,7 @@ impl<'a> Parser<'a> { .span_suggestion( seq_span, "...or a vertical bar to match on multiple alternatives", - format!("{}", seq_snippet.replace(",", " |")), + seq_snippet.replace(",", " |"), Applicability::MachineApplicable, ); } -- cgit 1.4.1-3-g733a5