Skip to content

Canonicalise use foo::{self} with merge_derives #4574

@ndmitchell

Description

@ndmitchell

With merge_derives enabled, rustfmt (rustfmt 1.4.22-nightly (97d0301 2020-10-04)) changes:

  • use foo::{bar} to use foo::bar
  • use foo::self to use foo

But it doesn't change use foo::{self} to use foo. Such statements can arise through automated refactoring and would be useful to transform.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions