Skip to content

Commit a338fa9

Browse files
committed
Fix dogfood
1 parent ce229b2 commit a338fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/misc_early.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ impl EarlyLintPass for MiscEarly {
334334
if let ExprKind::Call(ref closure, _) = call.node;
335335
if let ExprKind::Path(_, ref path) = closure.node;
336336
then {
337-
if ident == (&path.segments[0]).ident {
337+
if ident == path.segments[0].ident {
338338
span_lint(
339339
cx,
340340
REDUNDANT_CLOSURE_CALL,

0 commit comments

Comments
 (0)