File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,14 @@ pub(crate) fn rewrite_match(
103103 let inner_attrs_str = if inner_attrs. is_empty ( ) {
104104 String :: new ( )
105105 } else {
106- if context. config . version ( ) == Version :: One {
107- inner_attrs
108- . rewrite ( context, shape)
109- . map ( |s| format ! ( "{}{}\n " , nested_indent_str, s) ) ?
106+ let shape = if context. config . version ( ) == Version :: One {
107+ shape
110108 } else {
111- inner_attrs
112- . rewrite ( context, shape. block_indent ( context. config . tab_spaces ( ) ) )
113- . map ( |s| format ! ( "{}{}\n " , nested_indent_str, s) ) ?
114- }
109+ shape. block_indent ( context. config . tab_spaces ( ) )
110+ } ;
111+ inner_attrs
112+ . rewrite ( context, shape)
113+ . map ( |s| format ! ( "{}{}\n " , nested_indent_str, s) ) ?
115114 } ;
116115
117116 let open_brace_pos = if inner_attrs. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments