Skip to content

Commit bd876b9

Browse files
authored
Merge pull request #2215 from iapain/master
Adds where_single_line in configuration documentation
2 parents db81a7f + 188acd9 commit bd876b9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Configurations.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,37 @@ fn lorem() -> usize {
906906

907907
See also [`control_brace_style`](#control_brace_style).
908908

909+
910+
## `where_single_line`
911+
912+
To force single line where layout
913+
914+
- **Default value**: `false`
915+
- **Possible values**: `true`, `false`
916+
917+
#### `false` (default):
918+
919+
```rust
920+
impl<T> Lorem for T
921+
where
922+
Option<T>: Ipsum,
923+
{
924+
...
925+
}
926+
```
927+
928+
#### `true`:
929+
930+
```rust
931+
impl<T> Lorem for T
932+
where Option<T>: Ipsum {
933+
...
934+
}
935+
```
936+
937+
See also [`brace_style`](#brace_style), [`control_brace_style`](#control_brace_style).
938+
939+
909940
## `force_explicit_abi`
910941

911942
Always print the abi for extern items

0 commit comments

Comments
 (0)