mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Use correct indent for return type when it goes multi line
This commit is contained in:
parent
272b0b6f49
commit
d269189f19
@ -1798,7 +1798,7 @@ fn rewrite_fn_base(context: &RewriteContext,
|
||||
indent
|
||||
} else {
|
||||
result.push(' ');
|
||||
Indent::new(indent.width(), result.len())
|
||||
Indent::new(indent.block_indent, last_line_width(&result))
|
||||
};
|
||||
|
||||
if multi_line_ret_str || ret_should_indent {
|
||||
|
@ -20,3 +20,7 @@ extern "C" {
|
||||
second_parameter: SecondParameterType,
|
||||
...);
|
||||
}
|
||||
|
||||
// #1652
|
||||
fn deconstruct(foo: Bar) -> (SocketAddr, Header, Method, RequestUri, HttpVersion, AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) {
|
||||
}
|
||||
|
@ -32,3 +32,14 @@ extern "C" {
|
||||
...
|
||||
);
|
||||
}
|
||||
|
||||
// #1652
|
||||
fn deconstruct(
|
||||
foo: Bar,
|
||||
) -> (SocketAddr,
|
||||
Header,
|
||||
Method,
|
||||
RequestUri,
|
||||
HttpVersion,
|
||||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user