From ec50a2086a7263b24795f70cfefb3a83737599f7 Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Wed, 17 Feb 2021 20:37:09 +0100 Subject: avoid converting types into themselves (clippy::useless_conversion) --- compiler/rustc_parse/src/parser/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_parse/src/parser/expr.rs') diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 20430ece05b..20398d3321d 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -513,7 +513,7 @@ impl<'a> Parser<'a> { token::Ident(..) if this.is_mistaken_not_ident_negation() => { make_it!(this, attrs, |this, _| this.recover_not_expr(lo)) } - _ => return this.parse_dot_or_call_expr(Some(attrs.into())), + _ => return this.parse_dot_or_call_expr(Some(attrs)), } } -- cgit 1.4.1-3-g733a5