Skip to content

Commit 8edb3e1

Browse files
committed
Minor changes
1 parent 30cbba2 commit 8edb3e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ pub(crate) fn generate_trait_from_impl(acc: &mut Assists, ctx: &AssistContext<'_
105105
remove_items_visibility(&item);
106106
});
107107

108-
ted::replace(assoc_items.clone_for_update().syntax(), impl_items.syntax());
109-
110108
impl_items.assoc_items().for_each(|item| {
111109
remove_items_visibility(&item);
112110
});
@@ -201,7 +199,7 @@ fn strip_body(item: &ast::AssocItem) {
201199
}
202200
}
203201

204-
ted::replace(body.syntax(), ast::make::tokens::semicolon());
202+
ted::replace(body.syntax(), make::tokens::semicolon());
205203
}
206204
}
207205
_ => (),

0 commit comments

Comments
 (0)