Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f079cf commit dd5f26cCopy full SHA for dd5f26c
src/tools/rustfmt/src/items.rs
@@ -2599,7 +2599,8 @@ fn rewrite_fn_base(
2599
if where_clause_str.is_empty() {
2600
if let ast::FnRetTy::Default(ret_span) = fd.output {
2601
match recover_missing_comment_in_span(
2602
- mk_sp(params_span.hi(), ret_span.hi()),
+ // from after the closing paren to right before block or semicolon
2603
+ mk_sp(ret_span.lo(), span.hi()),
2604
shape,
2605
context,
2606
last_line_width(&result),
0 commit comments