You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Configurations.md
+88-29Lines changed: 88 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -17,35 +17,6 @@ To enable unstable options, set `unstable_features = true` in `rustfmt.toml` or
17
17
18
18
Below you find a detailed visual guide on all the supported configuration options of rustfmt:
19
19
20
-
## `allow_chain_call_overflow`
21
-
22
-
Wrap elements of a call chain even if one or more lines exceed the `max_width`
23
-
24
-
-**Default value**: `false`
25
-
-**Possible values**: `true`, `false`
26
-
-**Stable**: No (tracking issue: ...)
27
-
28
-
#### `false` (default):
29
-
30
-
```rust
31
-
fnexample() {
32
-
foo("This text is under the max_width limit, and shouldn't cause any problems on its own.").long("But this line is extra long, and doesn't fit within 100 max_width. 1234567890123456789").baz().collect().unwrap();
33
-
}
34
-
```
35
-
36
-
#### `true`:
37
-
38
-
```rust
39
-
fnexample() {
40
-
foo("This text is under the max_width limit, and shouldn't cause any problems on its own.")
41
-
.long("But this line is extra long, and doesn't fit within 100 max_width. 1234567890123456789")
42
-
.baz()
43
-
.collect()
44
-
.unwrap();
45
-
}
46
-
```
47
-
48
-
49
20
## `binop_separator`
50
21
51
22
Where to put a binary operator when a binary expression goes multiline.
@@ -417,6 +388,94 @@ fn example() {
417
388
}
418
389
```
419
390
391
+
## `chains_block_parent_indent_children`
392
+
Determines whether to indent the child chain items of a chain that beings with a block-like parent element.
393
+
394
+
-**Default value**: `false`
395
+
-**Possible values**: `true`, `false`
396
+
-**Stable**: No (tracking issue: ...)
397
+
398
+
#### `false` (default):
399
+
400
+
```rust
401
+
fnexample() {
402
+
StructA {
403
+
test_test:some_value,
404
+
}
405
+
.foo()
406
+
.bar()
407
+
.baz()
408
+
.qux();
409
+
}
410
+
```
411
+
412
+
#### `true`:
413
+
414
+
```rust
415
+
fnexample() {
416
+
StructA {
417
+
test_test:some_value,
418
+
}
419
+
.foo()
420
+
.bar()
421
+
.baz()
422
+
.qux();
423
+
}
424
+
```
425
+
426
+
## `chains_block_parent_indent_parent_item`
427
+
Determines whether block-like chain parents are indented
0 commit comments