-
Notifications
You must be signed in to change notification settings - Fork 1k
Format derive attributes vertically #5578
Copy link
Copy link
Open
Labels
C-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)P-lowLow priorityLow priority
Description
Hi!
I'd like to format my #[derive(..)] attributes vertically - like this:
#[derive(
Clone,
Default,
PartialEq,
)]I've tried the following in my rustfmt.toml, but this seemed to have no effect.
attr_fn_like_width = 1 # no effect?
attr_fn_like_width = 0 # nor this
Also adding a trailing comma to the list doesn't work. rustfmt just removes the comma and reformats the list horizontally.
Any help appreciated!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)P-lowLow priorityLow priority
Type
Fields
Give feedbackNo fields configured for issues without a type.