-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 newline
- Loading branch information
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// rustfmt-max_width: 80 | ||
|
||
trait GetMetadata { | ||
fn metadata(loc: ApiEndpointParameterLocation) | ||
-> Vec<ApiEndpointParameter>; | ||
} |