Skip to content

Format derive attributes alphabetically #6298

Closed as not planned
Closed as not planned
@maksym-arutyunyan

Description

@maksym-arutyunyan

[Feature Request]

Please add a feature to automatically format #[derive(...)] attributes in alphabetical order by default.

// Current (not sorted):
#[derive(Ord, PartialEq, Eq, Hash, Debug, Clone)]

// Desired (sorted):
#[derive(Clone, Debug, Eq, Hash, Ord, PartialEq)]

Thank you!

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