]> git.lizzy.rs Git - rust.git/blob - tests/target/configs-multiline_closure_forces_block-true.rs
Remove `match_arm_forces_newline`
[rust.git] / tests / target / configs-multiline_closure_forces_block-true.rs
1 // rustfmt-multiline_closure_forces_block: true
2 // Option forces multiline closure bodies to be wrapped in a block
3
4 fn main() {
5     result.and_then(|maybe_value| {
6         match maybe_value {
7             None => Err("oops"),
8             Some(value) => Ok(1),
9         }
10     });
11 }