Cosmetic change.

This commit is contained in:
laurent 2017-11-05 15:04:01 +00:00
parent 7624736961
commit 42f44d5c78
1 changed files with 1 additions and 5 deletions

View File

@ -580,11 +580,7 @@ fn never_loop_expr(expr: &Expr, main_loop_id: &NodeId) -> NeverLoopResult {
ExprIf(ref e, ref e2, ref e3) => {
let e1 = never_loop_expr(e, main_loop_id);
let e2 = never_loop_expr(e2, main_loop_id);
let e3 =
match *e3 {
Some(ref e3) => never_loop_expr(e3, main_loop_id),
None => NeverLoopResult::Otherwise,
};
let e3 = e3.as_ref().map(|ref e| never_loop_expr(e, main_loop_id)).unwrap_or(NeverLoopResult::Otherwise);
combine_seq(e1, combine_branches(e2, e3))
},
ExprLoop(ref b, _, _) => {