diff options
author | Kevin DeLorey <[email protected]> | 2020-01-23 04:38:03 +0000 |
---|---|---|
committer | Kevin DeLorey <[email protected]> | 2020-01-23 04:38:03 +0000 |
commit | bc1fc6239d67708112f4f3997b104934dd11b7fd (patch) | |
tree | 7fd972104d02175d35a5ae09b4217e36844d50d1 /crates/ra_ide/src/completion | |
parent | e3cda83f90a5e64ccf288438466e6c447df253a8 (diff) |
Renamed the trait completion mod.
Diffstat (limited to 'crates/ra_ide/src/completion')
-rw-r--r-- | crates/ra_ide/src/completion/complete_trait_impl.rs (renamed from crates/ra_ide/src/completion/complete_impl_fn.rs) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/completion/complete_impl_fn.rs b/crates/ra_ide/src/completion/complete_trait_impl.rs index 6d464cc1f..3bec57426 100644 --- a/crates/ra_ide/src/completion/complete_impl_fn.rs +++ b/crates/ra_ide/src/completion/complete_trait_impl.rs | |||
@@ -5,7 +5,7 @@ use hir::{ self, db::HirDatabase, HasSource }; | |||
5 | 5 | ||
6 | use ra_syntax::{ ast, ast::AstNode }; | 6 | use ra_syntax::{ ast, ast::AstNode }; |
7 | 7 | ||
8 | pub(crate) fn complete_impl_fn(acc: &mut Completions, ctx: &CompletionContext) { | 8 | pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) { |
9 | let impl_trait = ast::ItemList::cast(ctx.token.parent()) | 9 | let impl_trait = ast::ItemList::cast(ctx.token.parent()) |
10 | .and_then(|item_list| item_list.syntax().parent()) | 10 | .and_then(|item_list| item_list.syntax().parent()) |
11 | .and_then(|item_list_parent| ast::ImplBlock::cast(item_list_parent)) | 11 | .and_then(|item_list_parent| ast::ImplBlock::cast(item_list_parent)) |