summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/match-flattening.rs
blob: 935ece53b83bc4277db0c5fe92863e8790c9bd99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
fn main() {
    match option {
        None => if condition {
            true
        } else {
            false
        },
    }
}

fn main() {
    match option {
        None => {
            if condition {
                true
            } else {
                false
            }
        }
    }
}