Fix lint warnings
This commit is contained in:
parent
4a3bc6b592
commit
00ca42fe5b
4 changed files with 63 additions and 58 deletions
|
|
@ -93,7 +93,7 @@ impl<'a> Sugg<'a> {
|
|||
match expr.node {
|
||||
hir::ExprKind::AddrOf(..)
|
||||
| hir::ExprKind::Box(..)
|
||||
| hir::ExprKind::Closure(.., _)
|
||||
| hir::ExprKind::Closure(..)
|
||||
| hir::ExprKind::Unary(..)
|
||||
| hir::ExprKind::Match(..) => Sugg::MaybeParen(snippet),
|
||||
hir::ExprKind::Continue(..)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue