about summary refs log tree commit diff
path: root/src/librustc_parse
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-01-15 15:00:25 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-01-15 15:00:25 +0100
commit312c3a067a090dd7c970ba40c08909ca1281c312 (patch)
tree3e9ba5e1a9a0b9cd8a70be89b6d2431d8d93048f /src/librustc_parse
parentc74353c7d2e61b111a9241490b9fbbd1ebe491fe (diff)
remove redundant clones, found by clippy
Diffstat (limited to 'src/librustc_parse')
-rw-r--r--src/librustc_parse/parser/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/ty.rs b/src/librustc_parse/parser/ty.rs
index ea14aa278ac..065a3b14428 100644
--- a/src/librustc_parse/parser/ty.rs
+++ b/src/librustc_parse/parser/ty.rs
@@ -500,7 +500,7 @@ impl<'a> Parser<'a> {
             err.span_suggestion_short(
                 lo.to(self.prev_span),
                 "remove the parentheses",
-                snippet.to_owned(),
+                snippet,
                 Applicability::MachineApplicable,
             );
         }