diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-06 13:58:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-06 13:58:59 +0000 |
commit | 19de59a9233a09a9b70a96a6c49213b119819c46 (patch) | |
tree | 9619fde70cadd5bb3ba654527b4f22b5eebdd012 /crates/ra_assists/src | |
parent | ea9d18ba836a7228f7310e1bc77c0918f0191a42 (diff) | |
parent | ec6fb8da7c7a5529e1db30c0a6f7e2cda6a75d19 (diff) |
Merge #3028
3028: Add profiling around add_impl_members r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r-- | crates/ra_assists/src/assists/add_missing_impl_members.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 | ||