rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

Whitespaces in path to macro inside derive block

Open kuqmua opened this issue 1 year ago • 2 comments

"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)

kuqmua avatar Sep 22 '24 08:09 kuqmua

@kuqmua thanks for the report. What version of rustfmt were you using? You can find this out by running rustfmt --version.

ytmimi avatar Sep 22 '24 17:09 ytmimi

@ytmimi

rustfmt 1.8.0-nightly (6c6d210089 2024-09-22)

kuqmua avatar Sep 23 '24 09:09 kuqmua