@@ -34,7 +34,7 @@ use utils::{colon_spaces, contains_skip, first_line_width, format_abi, format_co
34
34
format_defaultness, format_mutability, format_unsafety, format_visibility,
35
35
is_attributes_extendable, last_line_contains_single_line_comment,
36
36
last_line_used_width, last_line_width, mk_sp, semicolon_for_expr, starts_with_newline,
37
- stmt_expr, trim_newlines , trimmed_last_line_width} ;
37
+ stmt_expr, trimmed_last_line_width} ;
38
38
use vertical:: rewrite_with_alignment;
39
39
use visitor:: FmtVisitor ;
40
40
@@ -674,7 +674,7 @@ pub fn format_impl(
674
674
675
675
result. push ( '\n' ) ;
676
676
result. push_str ( & inner_indent_str) ;
677
- result. push_str ( trim_newlines ( visitor. buffer . to_string ( ) . trim ( ) ) ) ;
677
+ result. push_str ( visitor. buffer . to_string ( ) . trim ( ) ) ;
678
678
result. push ( '\n' ) ;
679
679
result. push_str ( & outer_indent_str) ;
680
680
}
@@ -1073,7 +1073,7 @@ pub fn format_trait(context: &RewriteContext, item: &ast::Item, offset: Indent)
1073
1073
1074
1074
result. push ( '\n' ) ;
1075
1075
result. push_str ( & inner_indent_str) ;
1076
- result. push_str ( trim_newlines ( visitor. buffer . to_string ( ) . trim ( ) ) ) ;
1076
+ result. push_str ( visitor. buffer . to_string ( ) . trim ( ) ) ;
1077
1077
result. push ( '\n' ) ;
1078
1078
result. push_str ( & outer_indent_str) ;
1079
1079
} else if result. contains ( '\n' ) {
0 commit comments