@@ -90,9 +90,9 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EvalOrderDependence {
90
90
fn check_stmt ( & mut self , cx : & LateContext < ' a , ' tcx > , stmt : & ' tcx Stmt ) {
91
91
match stmt. node {
92
92
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
+ }
96
96
} ,
97
97
StmtKind :: Expr ( ref e) | StmtKind :: Semi ( ref e) => DivergenceVisitor { cx } . maybe_walk_expr ( e) ,
98
98
StmtKind :: Item ( ..) => { } ,
@@ -271,9 +271,10 @@ fn check_stmt<'a, 'tcx>(vis: &mut ReadVisitor<'a, 'tcx>, stmt: &'tcx Stmt) -> St
271
271
StmtKind :: Expr ( ref expr) | StmtKind :: Semi ( ref expr) => check_expr ( vis, expr) ,
272
272
// If the declaration is of a local variable, check its initializer
273
273
// 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) ) ,
277
278
_ => StopEarly :: KeepGoing ,
278
279
}
279
280
}
0 commit comments