diff options
| author | topecongiro <seuchida@gmail.com> | 2017-06-12 16:23:10 +0900 |
|---|---|---|
| committer | topecongiro <seuchida@gmail.com> | 2017-06-12 16:23:10 +0900 |
| commit | d269189f19f62de61564d9225cef18d9482bb55c (patch) | |
| tree | 1b2e9ecd1b966312339b5cdf0f87aae8f23bcc50 /src | |
| parent | 272b0b6f495aa09e885f46ae80561ad787caf9da (diff) | |
Use correct indent for return type when it goes multi line
Diffstat (limited to 'src')
| -rw-r--r-- | src/items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/items.rs b/src/items.rs index ac2f36ad76a..43101d9187b 100644 --- a/src/items.rs +++ b/src/items.rs @@ -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 { |
