From a338fa9b9538cf8079d084db155feb03c6f88ce7 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 29 May 2018 14:45:10 +0200 Subject: [PATCH] Fix dogfood --- clippy_lints/src/misc_early.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/misc_early.rs b/clippy_lints/src/misc_early.rs index 9ff7bbe4aba9..068febe16724 100644 --- a/clippy_lints/src/misc_early.rs +++ b/clippy_lints/src/misc_early.rs @@ -334,7 +334,7 @@ impl EarlyLintPass for MiscEarly { if let ExprKind::Call(ref closure, _) = call.node; if let ExprKind::Path(_, ref path) = closure.node; then { - if ident == (&path.segments[0]).ident { + if ident == path.segments[0].ident { span_lint( cx, REDUNDANT_CLOSURE_CALL,