-
Notifications
You must be signed in to change notification settings - Fork 5
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
Better formatting? #51
Conversation
Set max_width = 120 (default: 100) Set use_small_heuristics = "Max"
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #51 +/- ##
==========================================
+ Coverage 99.34% 99.37% +0.02%
==========================================
Files 9 9
Lines 1382 1285 -97
==========================================
- Hits 1373 1277 -96
+ Misses 9 8 -1 ☔ View full report in Codecov by Sentry. |
Yes, of these three I think I prefer the 120 width and default heuristics variant too. I have some reluctance towards going against the all default settings, but line length is really the least obtrusive one. |
We should probably merge this when the other PRs are all merged. |
Ok, let's do that. |
Add a rustfmt.toml and set max_width = 120 (default: 100) and use_small_heuristics = "Max"
I made a few variants for comparison:
max_width = 120
+use_small_heuristics = "Max"
max_width = 120
+use_small_heuristics = "Default"
max_width = 100
+use_small_heuristics = "Max
I committed my personal preference as the last one: 120 width and default heuristics.