Proposing rustfmt.toml changes
Mitchell Kember
mkember at janestreet.com
Wed Feb 19 20:04:34 UTC 2025
Hi,
I'm proposing to change mercurial's Rust style in rustfmt.toml. I've made a
merge request to show what it would look like:
https://foss.heptapod.net/mercurial/mercurial-devel/-/merge_requests/1275
Specifically:
- Format imports to be consistent (one per line), and arrange them in
groups.
- Change the max line width from 79 to 80.
- Disable the "small heuristics" which causes wrapping much earlier than
max_width.
Since this affects all contributors, and formatting always brings out
strong opinions, I thought I'd start a discussion here. Let me know if you
are in favor or have any objections.
Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20250219/cfc61ae4/attachment.htm>
More information about the Mercurial
mailing list