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
+13-43Lines changed: 13 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -1526,75 +1526,45 @@ let lorem = 0 .. 10;
1526
1526
1527
1527
## `spaces_within_parens_and_brackets`
1528
1528
1529
-
Put spaces within non-empty generic arguments
1529
+
Put spaces within non-empty generic arguments, parentheses, and square brackets
1530
1530
1531
1531
-**Default value**: `false`
1532
1532
-**Possible values**: `true`, `false`
1533
1533
1534
1534
#### `false` (default):
1535
1535
1536
1536
```rust
1537
+
// generic arguments
1537
1538
fnlorem<T:Eq>(t:T) {
1538
1539
// body
1539
1540
}
1540
-
```
1541
-
1542
-
#### `true`:
1543
-
1544
-
```rust
1545
-
fnlorem< T:Eq >(t:T) {
1546
-
// body
1547
-
}
1548
-
```
1549
-
1550
-
See also: [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets), [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets).
1551
-
1552
-
## `spaces_within_parens_and_brackets`
1553
-
1554
-
Put spaces within non-empty parentheses
1555
-
1556
-
-**Default value**: `false`
1557
-
-**Possible values**: `true`, `false`
1558
1541
1559
-
#### `false` (default):
1560
-
1561
-
```rust
1542
+
// non-empty parentheses
1562
1543
fnlorem<T:Eq>(t:T) {
1563
1544
letlorem= (ipsum, dolor);
1564
1545
}
1546
+
1547
+
// non-empty square brackets
1548
+
letlorem: [usize; 2] = [ipsum, dolor];
1565
1549
```
1566
1550
1567
1551
#### `true`:
1568
1552
1569
1553
```rust
1554
+
// generic arguments
1555
+
fnlorem< T:Eq >(t:T) {
1556
+
// body
1557
+
}
1558
+
1559
+
// non-empty parentheses
1570
1560
fnlorem<T:Eq>( t:T ) {
1571
1561
letlorem= ( ipsum, dolor );
1572
1562
}
1573
-
```
1574
-
1575
-
See also: [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets), [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets).
1576
-
1577
-
## `spaces_within_parens_and_brackets`
1578
-
1579
-
Put spaces within non-empty square brackets
1580
-
1581
-
-**Default value**: `false`
1582
-
-**Possible values**: `true`, `false`
1583
1563
1584
-
#### `false` (default):
1585
-
1586
-
```rust
1587
-
letlorem: [usize; 2] = [ipsum, dolor];
1588
-
```
1589
-
1590
-
#### `true`:
1591
-
1592
-
```rust
1564
+
// non-empty square brackets
1593
1565
letlorem: [ usize; 2 ] = [ ipsum, dolor ];
1594
1566
```
1595
1567
1596
-
See also: [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets), [`spaces_within_parens_and_brackets`](#spaces_within_parens_and_brackets).
0 commit comments