Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitespaces in path to macro inside derive block #6343

Open
kuqmua opened this issue Sep 22, 2024 · 2 comments
Open

Whitespaces in path to macro inside derive block #6343

kuqmua opened this issue Sep 22, 2024 · 2 comments

Comments

@kuqmua
Copy link

kuqmua commented Sep 22, 2024

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

@ytmimi
Copy link
Contributor

ytmimi commented Sep 22, 2024

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

@kuqmua
Copy link
Author

kuqmua commented Sep 23, 2024

@ytmimi

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

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

No branches or pull requests

2 participants