Merge pull request #2469 from davidalber/fix-struct-lit-single-line-config-snippet
Using shorter example for `struct_lit_single_line` option
This commit is contained in:
commit
6c1e1dd720
@ -1630,7 +1630,9 @@ Put small struct literals on a single line
|
||||
#### `true` (default):
|
||||
|
||||
```rust
|
||||
let lorem = Lorem { ipsum: dolor, sit: amet };
|
||||
fn main() {
|
||||
let lorem = Lorem { foo: bar, baz: ofo };
|
||||
}
|
||||
```
|
||||
|
||||
#### `false`:
|
||||
@ -1638,8 +1640,8 @@ let lorem = Lorem { ipsum: dolor, sit: amet };
|
||||
```rust
|
||||
fn main() {
|
||||
let lorem = Lorem {
|
||||
ipsum: dolor,
|
||||
sit: amet,
|
||||
foo: bar,
|
||||
baz: ofo,
|
||||
};
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user