Skip to content

derive attribute is not wrapped if it's exactly max length #5796

Open
@Dzordzu

Description

@Dzordzu

Tested configuration

The default one plus cargo +nightly fmt -- --unstable-features --config error_on_line_overflow=true --config imports_granularity=module

Current situation

error[internal]: line formatted, but exceeded maximum width (maximum: 100 (see `max_width` option), found: 101)
  --> /home/dzordzu/400G/work/wcss/service-user-synchro/lib/sus-protocol/src/lib.rs:58:58:101
   |
58 |     Serialize, Deserialize, Debug, Clone, EnumString, EnumIter, strum_macros::Display, PartialEq, Eq,
   |                                                                                                     ^
   |

Suggestion

Add a new option to the merge_derives that will split derives on line overflow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions