Skip to content

Commit

Permalink
handle Unary
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan1729 committed Sep 29, 2020
1 parent 147ea6c commit 9a1e611
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_lints/src/suspicious_chained_operators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 9a1e611

Please sign in to comment.