We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e20502 commit 585e9dbCopy full SHA for 585e9db
Configurations.md
@@ -2408,6 +2408,25 @@ pub enum Foo {}
2408
pub enum Foo {}
2409
```
2410
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
2427
+#[cfg(feature = "alloc")] use core::slice;
2428
2429
2430
## `emit_mode`
2431
2432
Internal option
0 commit comments