Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibektas committed Jul 5, 2023
1 parent 30cbba2 commit 8edb3e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/ide-assists/src/handlers/generate_trait_from_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ pub(crate) fn generate_trait_from_impl(acc: &mut Assists, ctx: &AssistContext<'_
remove_items_visibility(&item);
});

ted::replace(assoc_items.clone_for_update().syntax(), impl_items.syntax());

impl_items.assoc_items().for_each(|item| {
remove_items_visibility(&item);
});
Expand Down Expand Up @@ -201,7 +199,7 @@ fn strip_body(item: &ast::AssocItem) {
}
}

ted::replace(body.syntax(), ast::make::tokens::semicolon());
ted::replace(body.syntax(), make::tokens::semicolon());
}
}
_ => (),
Expand Down

0 comments on commit 8edb3e1

Please sign in to comment.