1 // rustfmt-single_line_if_else: true
3 // Format if-else expressions on a single line, when possible.
12 let a = if x { 1 } else if y { 2 } else { 3 };
29 if cond() { statement(); } else { other_statement(); }
35 let x = if veeeeeeeeery_loooooong_condition() { aaaaaaaaaaaaaaaaaaaaaaaaaaa } else { bbbbbbbbbb };
37 let x = if veeeeeeeeery_loooooong_condition() { aaaaaaaaaaaaaaaaaaaaaaaaa } else {