2017-11-26 22:01:49 -06:00
|
|
|
// rustfmt-force_multiline_blocks: false
|
|
|
|
// Option forces multiline match arm and closure bodies to be wrapped in a block
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match lorem {
|
2017-11-30 03:07:10 -06:00
|
|
|
Lorem::Ipsum => {
|
|
|
|
if ipsum {
|
|
|
|
println!("dolor");
|
|
|
|
}
|
|
|
|
}
|
2017-11-26 22:01:49 -06:00
|
|
|
Lorem::Dolor => println!("amet"),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
result.and_then(|maybe_value| match maybe_value {
|
|
|
|
None => Err("oops"),
|
|
|
|
Some(value) => Ok(1),
|
|
|
|
});
|
|
|
|
}
|