Skip to content

Commit 5ebe9d9

Browse files
committed
add a section to Configuration.md
1 parent d3b4111 commit 5ebe9d9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Configurations.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,6 +2408,25 @@ pub enum Foo {}
24082408
pub enum Foo {}
24092409
```
24102410

2411+
## `inline_attribute_width` (tracking issue #3343):
2412+
2413+
Write an item and its attributes on the same line if their combined width is below a threshold
2414+
2415+
### Example
2416+
2417+
Original Code (rustfmt will not change it with the default value of 0):
2418+
2419+
#### `0`:
2420+
```rust
2421+
#[cfg(feature = "alloc")]
2422+
use core::slice;
2423+
```
2424+
2425+
#### `50`:
2426+
```rust
2427+
#[cfg(feature = "alloc")] use core::slice;
2428+
```
2429+
24112430
## `emit_mode` (tracking issue #3399)
24122431

24132432
Internal option

0 commit comments

Comments
 (0)