@@ -257,7 +257,7 @@ pub(crate) fn format_expr(
257257 }
258258 _ => false ,
259259 } ,
260- ast:: ExprKind :: Unary ( _, ref expr) => needs_space_before_range ( context, & expr) ,
260+ ast:: ExprKind :: Unary ( _, ref expr) => needs_space_before_range ( context, expr) ,
261261 _ => false ,
262262 }
263263 }
@@ -423,7 +423,7 @@ fn rewrite_empty_block(
423423 prefix : & str ,
424424 shape : Shape ,
425425) -> Option < String > {
426- if block_has_statements ( & block) {
426+ if block_has_statements ( block) {
427427 return None ;
428428 }
429429
@@ -1148,7 +1148,7 @@ pub(crate) fn is_empty_block(
11481148 block : & ast:: Block ,
11491149 attrs : Option < & [ ast:: Attribute ] > ,
11501150) -> bool {
1151- !block_has_statements ( & block)
1151+ !block_has_statements ( block)
11521152 && !block_contains_comment ( context, block)
11531153 && attrs. map_or ( true , |a| inner_attributes ( a) . is_empty ( ) )
11541154}
@@ -1621,7 +1621,7 @@ fn rewrite_struct_lit<'a>(
16211621 } ;
16221622
16231623 let fields_str =
1624- wrap_struct_field ( context, & attrs, & fields_str, shape, v_shape, one_line_width) ?;
1624+ wrap_struct_field ( context, attrs, & fields_str, shape, v_shape, one_line_width) ?;
16251625 Some ( format ! ( "{} {{{}}}" , path_str, fields_str) )
16261626
16271627 // FIXME if context.config.indent_style() == Visual, but we run out
@@ -1888,7 +1888,7 @@ pub(crate) fn rewrite_assign_rhs_expr<R: Rewrite>(
18881888 shape : Shape ,
18891889 rhs_tactics : RhsTactics ,
18901890) -> Option < String > {
1891- let last_line_width = last_line_width ( & lhs) . saturating_sub ( if lhs. contains ( '\n' ) {
1891+ let last_line_width = last_line_width ( lhs) . saturating_sub ( if lhs. contains ( '\n' ) {
18921892 shape. indent . width ( )
18931893 } else {
18941894 0
@@ -1947,7 +1947,7 @@ pub(crate) fn rewrite_assign_rhs_with_comments<S: Into<String>, R: Rewrite>(
19471947
19481948 if contains_comment {
19491949 let rhs = rhs. trim_start ( ) ;
1950- combine_strs_with_missing_comments ( context, & lhs, & rhs, between_span, shape, allow_extend)
1950+ combine_strs_with_missing_comments ( context, & lhs, rhs, between_span, shape, allow_extend)
19511951 } else {
19521952 Some ( lhs + & rhs)
19531953 }
0 commit comments