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

Run rustfmt to get a default format #613

Closed
wants to merge 1 commit into from
Closed

Run rustfmt to get a default format #613

wants to merge 1 commit into from

Conversation

JmPotato
Copy link
Contributor

Signed-off-by: JmPotato ghzpotato@gmail.com

Summary

rustfmt will not trim these commas by default. I think it's better to obey this behavior. Otherwise, many developers with format-on-save on will keep being bothered by IDE/Code Editor.

FYI, rust-lang/style-team#42 (comment)

Changelog

  • Other

Related Issues

None.

Test Plan

Unit Tests
Stateless Tests

Signed-off-by: JmPotato <ghzpotato@gmail.com>
@databend-bot
Copy link
Member

Thanks for the contribution!
I have applied any labels matching special text in your title and description.

Please review the labels and make any necessary changes.

@jyizheng
Copy link
Contributor

We are using cargo fmt. Is its behavior different from rustfmt?

@JmPotato
Copy link
Contributor Author

We are using cargo fmt. Is its behavior different from rustfmt?

cargo fmt is rustfmt. They are the same thing. And I have never changed my config before. It's kind of strange we got different format results.

@JmPotato
Copy link
Contributor Author

Oh I know, after switching to the nightly toolchain, the results are the same.

@jyizheng
Copy link
Contributor

Good to know. Thanks for your investigation.

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.

3 participants