diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 10:42:51 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 10:50:56 +0100 |
commit | 2984da672e0c73d56501c6b6e4d19fd28152b5eb (patch) | |
tree | ca9e499bd96c2273f90f27d43ba7282b5931f8df /crates/ra_assists/src/handlers/generate_new.rs | |
parent | 72ffd851dd5b0fcdf3aa072131ba11009878b4ae (diff) |
Split ItemList & AssocItemList
Diffstat (limited to 'crates/ra_assists/src/handlers/generate_new.rs')
-rw-r--r-- | crates/ra_assists/src/handlers/generate_new.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/handlers/generate_new.rs b/crates/ra_assists/src/handlers/generate_new.rs index e27def1d8..25bc171bf 100644 --- a/crates/ra_assists/src/handlers/generate_new.rs +++ b/crates/ra_assists/src/handlers/generate_new.rs | |||
@@ -158,7 +158,7 @@ fn find_struct_impl(ctx: &AssistContext, strukt: &ast::StructDef) -> Option<Opti | |||
158 | } | 158 | } |
159 | 159 | ||
160 | fn has_new_fn(imp: &ast::ImplDef) -> bool { | 160 | fn has_new_fn(imp: &ast::ImplDef) -> bool { |
161 | if let Some(il) = imp.item_list() { | 161 | if let Some(il) = imp.assoc_item_list() { |
162 | for item in il.assoc_items() { | 162 | for item in il.assoc_items() { |
163 | if let ast::AssocItem::FnDef(f) = item { | 163 | if let ast::AssocItem::FnDef(f) = item { |
164 | if let Some(name) = f.name() { | 164 | if let Some(name) = f.name() { |