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

feat: common code formatting rules with rustfmt #29

Merged
merged 3 commits into from Mar 26, 2019
Merged

Conversation

mersinvald
Copy link

@mersinvald mersinvald commented Mar 23, 2019

This PR applies global formatting rules (described in rustfmt.toml) to the codebase.

WIth the CI stage checking the formatting for correctness, this is the first step to enforsing the common formatting style in the repo.

Closes #30

This is not a breaking change, though it would require applying the formatting for those branches created from unformatted master base before the merge.

In my opinion the easiest way to go with these branches is to copy the rustfmt.toml from master, run cargo fmt and then make a master->branch merge instead of the rebase to minimize git conflicts.

@mersinvald mersinvald force-pushed the feat/rustfmt branch 2 times, most recently from 3e86815 to d483e3a Compare March 24, 2019 11:24
Mike Lubinets added 3 commits March 24, 2019 15:04
- annotate Patch trait implementations as to-be-skipped during formatting
 - enable cargo caching for travis builds
 - install rustfmt for stable
@mersinvald mersinvald changed the title WIP: Feat/rustfmt feat: common code formatting rules with rustfmt Mar 24, 2019
@mersinvald mersinvald added this to In progress in Housekeeping via automation Mar 24, 2019
Housekeeping automation moved this from In progress to Reviewer approved Mar 25, 2019
Copy link

@testhound testhound left a comment

Choose a reason for hiding this comment

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

I'm fine with this change.

@mersinvald mersinvald merged commit 6a60714 into master Mar 26, 2019
Housekeeping automation moved this from Reviewer approved to Done Mar 26, 2019
@mersinvald mersinvald deleted the feat/rustfmt branch March 29, 2019 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Housekeeping
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants