mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 21:53:56 +00:00
Fixing force_multiline_blocks=false
snippet
This commit is contained in:
parent
f925c581fe
commit
f624f6b5a6
@ -1161,16 +1161,18 @@ Force multiline closure and match arm bodies to be wrapped in a block
|
||||
#### `false` (default):
|
||||
|
||||
```rust
|
||||
result.and_then(|maybe_value| match maybe_value {
|
||||
None => ...,
|
||||
Some(value) => ...,
|
||||
})
|
||||
fn main() {
|
||||
result.and_then(|maybe_value| match maybe_value {
|
||||
None => foo(),
|
||||
Some(value) => bar(),
|
||||
});
|
||||
|
||||
match lorem {
|
||||
None => if ipsum {
|
||||
println!("Hello World");
|
||||
},
|
||||
Some(dolor) => ...,
|
||||
match lorem {
|
||||
None => if ipsum {
|
||||
println!("Hello World");
|
||||
},
|
||||
Some(dolor) => foo(),
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user