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

Format using prettyplease instead of rustfmt #78

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

dtolnay
Copy link
Contributor

@dtolnay dtolnay commented Jun 7, 2022

  • Fixes Wrong lines stripped if an input contains module-level attribute #77.
  • Separately, prettyplease is advantageous for this use case because the downstream repo can pin an exact version of it (prettyplease = "=0.1.11") to completely isolate itself from formatting changes. This way we can ensure that our expand tests always pass when run by any user, regardless of what rustfmt version is installed on their system.

Copy link
Owner

@eupn eupn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

@eupn eupn merged commit eb8014e into eupn:master Jun 7, 2022
@Emoun Emoun mentioned this pull request Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong lines stripped if an input contains module-level attribute
2 participants