Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Tighten up Rust CI #67

Merged
merged 2 commits into from
Sep 18, 2019
Merged

Tighten up Rust CI #67

merged 2 commits into from
Sep 18, 2019

Conversation

matklad
Copy link
Contributor

@matklad matklad commented Sep 18, 2019

No description provided.

@@ -0,0 +1,2 @@
version = "Two"
use_small_heuristics = "Max"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not the default, but this is what compiler uses and what I personally prefer as well.

By default, rustfmt puts every thing on a separate line, which makes for a low-dencity code (so that formatting code with rustfmt for the first time is something like 1.5x increase in sloc).

This might be better to review diffs, but, to my mind, it makes reading code outside of diff (ie, most of the time) harder.

I don't have a strong opinion here thogh, we can stick to vanilla config as well

Copy link
Contributor

Choose a reason for hiding this comment

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

I have no preference from my side so I'm ok to go with this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stjepang, @skade any preferences here?

@matklad
Copy link
Contributor Author

matklad commented Sep 18, 2019

Merging optimistically, changing style is trivial while we have a dozen lines of code.

@matklad matklad merged commit 903cdb9 into master Sep 18, 2019
@tanertopal tanertopal deleted the matklad/rustfmt branch September 20, 2019 13:12
little-dude added a commit to little-dude/xain-fl that referenced this pull request Mar 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants