File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ fn add_missing_impl_members_inner(
165
165
. map ( |it| edit:: remove_attrs_and_docs ( & it) ) ;
166
166
167
167
let new_impl_item_list = impl_item_list. append_items ( items) ;
168
- let new_impl_def = impl_def. with_items ( new_impl_item_list) ;
168
+ let new_impl_def = impl_def. with_assoc_item_list ( new_impl_item_list) ;
169
169
let first_new_item =
170
170
new_impl_def. assoc_item_list ( ) . unwrap ( ) . assoc_items ( ) . nth ( n_existing_items) . unwrap ( ) ;
171
171
Original file line number Diff line number Diff line change 95
95
96
96
impl ast:: Impl {
97
97
#[ must_use]
98
- pub fn with_items ( & self , items : ast:: AssocItemList ) -> ast:: Impl {
98
+ pub fn with_assoc_item_list ( & self , items : ast:: AssocItemList ) -> ast:: Impl {
99
99
let mut to_insert: ArrayVec < [ SyntaxElement ; 2 ] > = ArrayVec :: new ( ) ;
100
100
if let Some ( old_items) = self . assoc_item_list ( ) {
101
101
let to_replace: SyntaxElement = old_items. syntax ( ) . clone ( ) . into ( ) ;
You can’t perform that action at this time.
0 commit comments