Commit ca8900c
committed
Enforce stricter rustfmt rules to prevent style ambiguity
Changes:
- `match_arm_leading_pipes`: "Preserve" -> "Never" (enforce single style)
- `trailing_semicolon`: false -> true (enforce `return 42;` with semicolon)
- Add `normalize_comments = true` (normalize comment spacing)
- Add `normalize_doc_attributes = true` (enforce `///` over `#[doc = ""]`)
These changes ensure only one valid formatting style exists, reducing
unnecessary diffs in pull requests caused by different but valid styles.1 parent a6082b3 commit ca8900c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments