@@ -120,7 +120,7 @@ fn check_fn<'tcx>(cx: &LateContext<'tcx>, decl: &'tcx FnDecl<'_>, body: &'tcx Bo
120120 let mut bindings = Vec :: with_capacity ( decl. inputs . len ( ) ) ;
121121 for arg in iter_input_pats ( decl, body) {
122122 if let PatKind :: Binding ( .., ident, _) = arg. pat . kind {
123- bindings. push ( ( ident. name , ident. span ) )
123+ bindings. push ( ( ident. name , ident. span ) ) ;
124124 }
125125 }
126126 check_expr ( cx, & body. value , & mut bindings) ;
@@ -156,7 +156,7 @@ fn check_local<'tcx>(cx: &LateContext<'tcx>, local: &'tcx Local<'_>, bindings: &
156156 ..
157157 } = * local;
158158 if let Some ( t) = * ty {
159- check_ty ( cx, t, bindings)
159+ check_ty ( cx, t, bindings) ;
160160 }
161161 if let Some ( o) = * init {
162162 check_expr ( cx, o, bindings) ;
@@ -324,14 +324,14 @@ fn check_expr<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>, bindings: &mut
324324 }
325325 match expr. kind {
326326 ExprKind :: Unary ( _, e) | ExprKind :: Field ( e, _) | ExprKind :: AddrOf ( _, _, e) | ExprKind :: Box ( e) => {
327- check_expr ( cx, e, bindings)
327+ check_expr ( cx, e, bindings) ;
328328 } ,
329329 ExprKind :: Block ( block, _) | ExprKind :: Loop ( block, ..) => check_block ( cx, block, bindings) ,
330330 // ExprKind::Call
331331 // ExprKind::MethodCall
332332 ExprKind :: Array ( v) | ExprKind :: Tup ( v) => {
333333 for e in v {
334- check_expr ( cx, e, bindings)
334+ check_expr ( cx, e, bindings) ;
335335 }
336336 } ,
337337 ExprKind :: If ( cond, then, ref otherwise) => {
@@ -374,7 +374,7 @@ fn check_ty<'tcx>(cx: &LateContext<'tcx>, ty: &'tcx Ty<'_>, bindings: &mut Vec<(
374374 TyKind :: Ptr ( MutTy { ty : mty, .. } ) | TyKind :: Rptr ( _, MutTy { ty : mty, .. } ) => check_ty ( cx, mty, bindings) ,
375375 TyKind :: Tup ( tup) => {
376376 for t in tup {
377- check_ty ( cx, t, bindings)
377+ check_ty ( cx, t, bindings) ;
378378 }
379379 } ,
380380 TyKind :: Typeof ( ref anon_const) => check_expr ( cx, & cx. tcx . hir ( ) . body ( anon_const. body ) . value , bindings) ,
0 commit comments