diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_assists/Cargo.toml | 1 | ||||
-rw-r--r-- | crates/ra_assists/src/assists/add_missing_impl_members.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_assists/Cargo.toml b/crates/ra_assists/Cargo.toml index 0d2109e4e..9d3091b91 100644 --- a/crates/ra_assists/Cargo.toml +++ b/crates/ra_assists/Cargo.toml | |||
@@ -16,6 +16,7 @@ either = "1.5" | |||
16 | ra_syntax = { path = "../ra_syntax" } | 16 | ra_syntax = { path = "../ra_syntax" } |
17 | ra_text_edit = { path = "../ra_text_edit" } | 17 | ra_text_edit = { path = "../ra_text_edit" } |
18 | ra_fmt = { path = "../ra_fmt" } | 18 | ra_fmt = { path = "../ra_fmt" } |
19 | ra_prof = { path = "../ra_prof" } | ||
19 | ra_db = { path = "../ra_db" } | 20 | ra_db = { path = "../ra_db" } |
20 | hir = { path = "../ra_hir", package = "ra_hir" } | 21 | hir = { path = "../ra_hir", package = "ra_hir" } |
21 | test_utils = { path = "../test_utils" } | 22 | test_utils = { path = "../test_utils" } |
diff --git a/crates/ra_assists/src/assists/add_missing_impl_members.rs b/crates/ra_assists/src/assists/add_missing_impl_members.rs index 5bb937bde..e4c22ad55 100644 --- a/crates/ra_assists/src/assists/add_missing_impl_members.rs +++ b/crates/ra_assists/src/assists/add_missing_impl_members.rs | |||
@@ -99,6 +99,7 @@ fn add_missing_impl_members_inner( | |||
99 | assist_id: &'static str, | 99 | assist_id: &'static str, |
100 | label: &'static str, | 100 | label: &'static str, |
101 | ) -> Option<Assist> { | 101 | ) -> Option<Assist> { |
102 | let _p = ra_prof::profile("add_missing_impl_members_inner"); | ||
102 | let impl_node = ctx.find_node_at_offset::<ast::ImplBlock>()?; | 103 | let impl_node = ctx.find_node_at_offset::<ast::ImplBlock>()?; |
103 | let impl_item_list = impl_node.item_list()?; | 104 | let impl_item_list = impl_node.item_list()?; |
104 | 105 | ||