Skip to content

rustfmt should use natural sorting #4381

Description

@jgarvin

Current behavior is to sort imports lexicographically:

use std::num::{NonZeroU16, NonZeroU8, NonZeroU32, NonZeroU64};

Natural sorting would be slightly nicer:

use std::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions