]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/utils/sugg.rs
Add underscore expressions for destructuring assignments
[rust.git] / clippy_lints / src / utils / sugg.rs
index 625120b880eb50f3f94fea5e21fc44894fd5bcc3..1fcd41e4dbfed7a2e27dc3f12b93040c3f698e62 100644 (file)
@@ -170,6 +170,7 @@ pub fn ast(cx: &EarlyContext<'_>, expr: &ast::Expr, default: &'a str) -> Self {
             | ast::ExprKind::MacCall(..)
             | ast::ExprKind::MethodCall(..)
             | ast::ExprKind::Paren(..)
+            | ast::ExprKind::Underscore
             | ast::ExprKind::Path(..)
             | ast::ExprKind::Repeat(..)
             | ast::ExprKind::Ret(..)