Skip to content

Whitespaces in path to macro inside derive block #6343

Open
@kuqmua

Description

@kuqmua

"cargo fmt" command does not remove white spaces in derive block. For example i expected this

#[derive(serde :: Serialize)]
enum Something {
    Variant
}

to become this

#[derive(serde::Serialize)]
enum Something {
    Variant
}

cannot find anything similar in https://rust-lang.github.io/rustfmt/?version=master&search=
tried to find by words "space" or "derive"
(default config)

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