Skip to content

Pass sample code in through rustfmt #1150

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

Merged
merged 1 commit into from
Jun 18, 2020
Merged

Conversation

spenczar
Copy link
Contributor

Some of the sample code in the "Get Started" tutorial aligned stuff around equal signs. This surprised me a bit when I saw it, as someone totally new to Rust - I thought "Oh, I guess there must be a Rust code formatter that does that for you?"

Turns out, yes, there's a formatter - but it wouldn't align around equal signs. :)

Some of the sample code in the "Get Started" tutorial aligned stuff
around equal signs. rustfmt would prefer it be formatted without the
alignment.
@Manishearth Manishearth merged commit 22bdcc5 into rust-lang:master Jun 18, 2020
@spenczar spenczar deleted the rustfmt branch June 18, 2020 16:11
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.

2 participants