Skip to content

Commit 74c1a1e

Browse files
committed
rename make_editor to make in generate_module_def
1 parent a9d2246 commit 74c1a1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/ide-assists/src/handlers/extract_module.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)