Commit f817383
authored
Indent return types separated from params by newline (#4368)
* Indent return types separated from params by newline
#3891 removed Version One formatting that did this correctly (https://github.com/rust-lang/rustfmt/pull/3891/files#diff-5db152a52bdaeae9dacd35f43a4a78ddL2342-L2344),
but at seemingly at the time there were no tests to catch the
regression.
This commit fix-forwards the formatting regression, though via a different
implementation because the original implementation would muddle the branch
for visual indentation and this fix, which is probably not preferrable
giving the existing complexity of the rewrite_required_fn method.
Closes #4366
* fixup! Indent return types separated from params by newline1 parent e91edf5 commit f817383
File tree
3 files changed
+15
-5
lines changed- src/formatting
- tests/target
- configs/space_before_fn_sig_paren
3 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2368 | 2368 | | |
2369 | 2369 | | |
2370 | 2370 | | |
| 2371 | + | |
2371 | 2372 | | |
2372 | 2373 | | |
2373 | 2374 | | |
| |||
2385 | 2386 | | |
2386 | 2387 | | |
2387 | 2388 | | |
2388 | | - | |
| 2389 | + | |
| 2390 | + | |
2389 | 2391 | | |
2390 | 2392 | | |
2391 | 2393 | | |
| |||
2405 | 2407 | | |
2406 | 2408 | | |
2407 | 2409 | | |
2408 | | - | |
2409 | | - | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
2410 | 2414 | | |
2411 | | - | |
| 2415 | + | |
2412 | 2416 | | |
2413 | 2417 | | |
2414 | 2418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments