Fix lint warnings

This commit is contained in:
Michael Wright 2019-09-12 08:36:05 +02:00
parent 4a3bc6b592
commit 00ca42fe5b
4 changed files with 63 additions and 58 deletions

View file

@ -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(..)