Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/utils.rs')
| -rw-r--r-- | crates/ide-assists/src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-assists/src/utils.rs b/crates/ide-assists/src/utils.rs index 7ef877cc80..31649a71b9 100644 --- a/crates/ide-assists/src/utils.rs +++ b/crates/ide-assists/src/utils.rs @@ -236,7 +236,7 @@ pub fn add_trait_assoc_items_to_impl( ), new_indent_level, ); - ted::replace(fn_.get_or_create_body().syntax(), body.clone_for_update().syntax()) + ted::replace(fn_.get_or_create_body().syntax(), body.syntax()) } ast::AssocItem::TypeAlias(type_alias) => { if let Some(type_bound_list) = type_alias.type_bound_list() { |