From b85ac8d63c254750fbc5f28c4598b5cd99f1c77e Mon Sep 17 00:00:00 2001 From: Ryan1729 Date: Tue, 29 Sep 2020 17:45:00 -0600 Subject: [PATCH] handle `Unary` --- clippy_lints/src/suspicious_chained_operators.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/suspicious_chained_operators.rs b/clippy_lints/src/suspicious_chained_operators.rs index 3d405a7a6500..e938164f27dd 100644 --- a/clippy_lints/src/suspicious_chained_operators.rs +++ b/clippy_lints/src/suspicious_chained_operators.rs @@ -343,7 +343,8 @@ impl <'expr> Iterator for IdentIter<'expr> { .map(move |s| (s.ident, current_expr)) ) }, - ExprKind::Box(ref expr) => { + ExprKind::Box(ref expr) + | ExprKind::Unary(_, ref expr) => { set_and_call_next!( IdentIter::new(expr) )