File tree Expand file tree Collapse file tree
crates/ide-assists/src/handlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,12 +200,12 @@ fn generate_module_def(
200200 . collect_vec ( ) ;
201201 let impl_detached = ast:: Impl :: cast ( impl_. syntax ( ) . clone_subtree ( ) ) . unwrap ( ) ;
202202 let ( mut editor, _) = SyntaxEditor :: new ( impl_detached. syntax ( ) . clone ( ) ) ;
203- let make_editor = SyntaxFactory :: with_mappings ( ) ;
204- let assoc_item_list = make_editor . assoc_item_list ( assoc_items) ;
203+ let make = SyntaxFactory :: with_mappings ( ) ;
204+ let assoc_item_list = make . assoc_item_list ( assoc_items) ;
205205 if let Some ( existing_list) = impl_detached. assoc_item_list ( ) {
206206 editor. replace ( existing_list. syntax ( ) , assoc_item_list. syntax ( ) ) ;
207207 }
208- editor. add_mappings ( make_editor . finish_with_mappings ( ) ) ;
208+ editor. add_mappings ( make . finish_with_mappings ( ) ) ;
209209 let new_impl_node = editor. finish ( ) . new_root ( ) . clone ( ) ;
210210 let impl_ = ast:: Impl :: cast ( new_impl_node) . unwrap ( ) . reset_indent ( ) ;
211211 // Add the import for enum/struct corresponding to given impl block
You can’t perform that action at this time.
0 commit comments