Skip to content

Commit 864e554

Browse files
fanziervarkor
andcommitted
Add underscore expressions for destructuring assignments
Co-authored-by: varkor <[email protected]>
1 parent 3a648ff commit 864e554

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/utils/sugg.rs

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ impl<'a> Sugg<'a> {
170170
| ast::ExprKind::MacCall(..)
171171
| ast::ExprKind::MethodCall(..)
172172
| ast::ExprKind::Paren(..)
173+
| ast::ExprKind::Underscore
173174
| ast::ExprKind::Path(..)
174175
| ast::ExprKind::Repeat(..)
175176
| ast::ExprKind::Ret(..)

0 commit comments

Comments
 (0)