@@ -97,10 +97,16 @@ fn edit_struct_def(
97
97
if let Either :: Left ( strukt) = strukt {
98
98
if let Some ( w) = strukt. where_clause ( ) {
99
99
edit. delete ( w. syntax ( ) . text_range ( ) ) ;
100
- edit. insert ( tuple_fields_text_range. start ( ) , ast:: make:: tokens:: single_newline ( ) . text ( ) ) ;
100
+ edit. insert (
101
+ tuple_fields_text_range. start ( ) ,
102
+ ast:: make:: tokens:: single_newline ( ) . text ( ) ,
103
+ ) ;
101
104
edit. insert ( tuple_fields_text_range. start ( ) , w. syntax ( ) . text ( ) ) ;
102
105
edit. insert ( tuple_fields_text_range. start ( ) , "," ) ;
103
- edit. insert ( tuple_fields_text_range. start ( ) , ast:: make:: tokens:: single_newline ( ) . text ( ) ) ;
106
+ edit. insert (
107
+ tuple_fields_text_range. start ( ) ,
108
+ ast:: make:: tokens:: single_newline ( ) . text ( ) ,
109
+ ) ;
104
110
} else {
105
111
edit. insert ( tuple_fields_text_range. start ( ) , ast:: make:: tokens:: single_space ( ) . text ( ) ) ;
106
112
}
@@ -534,7 +540,10 @@ where
534
540
convert_tuple_struct_to_named_struct,
535
541
r#"enum Enum { Variant$0 { value: usize } };"# ,
536
542
) ;
537
- check_assist_not_applicable ( convert_tuple_struct_to_named_struct, r#"enum Enum { Variant$0 }"# ) ;
543
+ check_assist_not_applicable (
544
+ convert_tuple_struct_to_named_struct,
545
+ r#"enum Enum { Variant$0 }"# ,
546
+ ) ;
538
547
}
539
548
540
549
#[ test]
0 commit comments