Combine 3 repeated sections into a single section
@@ -1526,7 +1526,7 @@ let lorem = 0 .. 10;
## `spaces_within_parens_and_brackets`
-Put spaces within non-empty generic arguments
+Put spaces within non-empty generic arguments, parentheses, and square brackets
- **Default value**: `false`
- **Possible values**: `true`, `false`
@@ -1534,67 +1534,37 @@ Put spaces within non-empty generic arguments
#### `false` (default):
```rust
+// generic arguments
fn lorem<T: Eq>(t: T) {
// body
}
-```
-
-#### `true`:
-```rust
+// non-empty parentheses
fn lorem<T: Eq>(t: T) {
- // body
+ let lorem = (ipsum, dolor);
}
-```
-
-See also: [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets), [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets).
-
-## `spaces_within_parens_and_brackets`
-
-Put spaces within non-empty parentheses
-- **Default value**: `false`
-- **Possible values**: `true`, `false`
+// non-empty square brackets
+let lorem: [usize; 2] = [ipsum, dolor];
+```
-#### `false` (default):
+#### `true`:
```rust
+// generic arguments
fn lorem< T: Eq >(t: T) {
- let lorem = (ipsum, dolor);
+ // body
}
-```
-#### `true`:
-
-```rust
+// non-empty parentheses
fn lorem<T: Eq>( t: T ) {
let lorem = ( ipsum, dolor );
}
-```
-
-See also: [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets), [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets).
-
-## `spaces_within_parens_and_brackets`
-
-Put spaces within non-empty square brackets
-
-- **Default value**: `false`
-- **Possible values**: `true`, `false`
-#### `false` (default):
-
-```rust
-let lorem: [usize; 2] = [ipsum, dolor];
-```
-
-#### `true`:
-
-```rust
+// non-empty square brackets
let lorem: [ usize; 2 ] = [ ipsum, dolor ];
```
-See also: [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets), [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets).
-
## `struct_lit_single_line`
Put small struct literals on a single line
