@@ -90,9 +90,9 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EvalOrderDependence {
9090 fn check_stmt ( & mut self , cx : & LateContext < ' a , ' tcx > , stmt : & ' tcx Stmt ) {
9191 match stmt. node {
9292 StmtKind :: Local ( ref local) => {
93- if let Local { init : Some ( ref e) , .. } = * * local {
94- DivergenceVisitor { cx } . visit_expr ( e) ;
95- }
93+ if let Local { init : Some ( ref e) , .. } = * * local {
94+ DivergenceVisitor { cx } . visit_expr ( e) ;
95+ }
9696 } ,
9797 StmtKind :: Expr ( ref e) | StmtKind :: Semi ( ref e) => DivergenceVisitor { cx } . maybe_walk_expr ( e) ,
9898 StmtKind :: Item ( ..) => { } ,
@@ -271,9 +271,10 @@ fn check_stmt<'a, 'tcx>(vis: &mut ReadVisitor<'a, 'tcx>, stmt: &'tcx Stmt) -> St
271271 StmtKind :: Expr ( ref expr) | StmtKind :: Semi ( ref expr) => check_expr ( vis, expr) ,
272272 // If the declaration is of a local variable, check its initializer
273273 // expression if it has one. Otherwise, keep going.
274- StmtKind :: Local ( ref local) => {
275- local. init . as_ref ( ) . map_or ( StopEarly :: KeepGoing , |expr| check_expr ( vis, expr) )
276- } ,
274+ StmtKind :: Local ( ref local) => local
275+ . init
276+ . as_ref ( )
277+ . map_or ( StopEarly :: KeepGoing , |expr| check_expr ( vis, expr) ) ,
277278 _ => StopEarly :: KeepGoing ,
278279 }
279280}
0 commit comments