@@ -33,8 +33,8 @@ use types::join_bounds;
33
33
use utils:: { colon_spaces, contains_skip, first_line_width, format_abi, format_constness,
34
34
format_defaultness, format_mutability, format_unsafety, format_visibility,
35
35
is_attributes_extendable, last_line_contains_single_line_comment,
36
- last_line_extendable , last_line_used_width, last_line_width, mk_sp,
37
- semicolon_for_expr , starts_with_newline , stmt_expr, trimmed_last_line_width} ;
36
+ last_line_used_width, last_line_width, mk_sp, semicolon_for_expr , starts_with_newline ,
37
+ stmt_expr, trimmed_last_line_width} ;
38
38
use vertical:: rewrite_with_alignment;
39
39
use visitor:: FmtVisitor ;
40
40
@@ -631,8 +631,7 @@ pub fn format_impl(
631
631
}
632
632
result. push_str ( & where_clause_str) ;
633
633
634
- let need_newline = !last_line_extendable ( & result)
635
- && ( last_line_contains_single_line_comment ( & result) || result. contains ( '\n' ) ) ;
634
+ let need_newline = last_line_contains_single_line_comment ( & result) || result. contains ( '\n' ) ;
636
635
match context. config . brace_style ( ) {
637
636
_ if need_newline => result. push_str ( & sep) ,
638
637
BraceStyle :: AlwaysNextLine => result. push_str ( & sep) ,
0 commit comments