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

Ability to format statement scope code #2

Open
hukkin opened this issue Jan 20, 2021 · 0 comments
Open

Ability to format statement scope code #2

hukkin opened this issue Jan 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@hukkin
Copy link
Owner

hukkin commented Jan 20, 2021

rustfmt only formats item scope code, i.e. complete modules. Documentation often includes statement scope code that only makes sense inside a function.

See the discussion from lambda-fairy/maud#231 (comment) onwards.

Even if rustfmt doesn't support this, we might be able to come up with a somewhat working solution, maybe something like lambda-fairy/maud#231 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant