Skip to content

Commit e68044f

Browse files
committed
add a section to Configuration.md
- attributes => attribute
1 parent 0e408bf commit e68044f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Configurations.md

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

2411+
## `inline_attribute_width`
2412+
2413+
Write an item and its attribute on the same line if their combined width is below a threshold
2414+
2415+
- **Default value**: 0
2416+
- **Possible values**: any positive integer
2417+
- **Stable**: No (tracking issue: #3343)
2418+
2419+
### Example
2420+
2421+
#### `0` (default):
2422+
```rust
2423+
#[cfg(feature = "alloc")]
2424+
use core::slice;
2425+
```
2426+
2427+
#### `50`:
2428+
```rust
2429+
#[cfg(feature = "alloc")] use core::slice;
2430+
```
2431+
24112432
## `emit_mode`
24122433

24132434
Internal option

0 commit comments

Comments
 (0)