Skip to content

Commit 9a1e611

Browse files
committed
handle Unary
1 parent 147ea6c commit 9a1e611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/suspicious_chained_operators.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ impl <'expr> Iterator for IdentIter<'expr> {
343343
.map(move |s| (s.ident, current_expr))
344344
)
345345
},
346-
ExprKind::Box(ref expr) => {
346+
ExprKind::Box(ref expr)
347+
| ExprKind::Unary(_, ref expr) => {
347348
set_and_call_next!(
348349
IdentIter::new(expr)
349350
)

0 commit comments

Comments
 (0)