mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-27 14:24:08 +00:00
Reordered the use
items.
This commit is contained in:
parent
be97cbfdb4
commit
fc13b7fc9a
@ -1,5 +1,13 @@
|
||||
//! FIXME: write short doc here
|
||||
|
||||
use hir::{self, Docs, HasSource};
|
||||
use ra_assists::utils::get_missing_impl_items;
|
||||
use ra_syntax::{
|
||||
ast::{self, edit},
|
||||
AstNode, SyntaxKind, SyntaxNode, TextRange,
|
||||
};
|
||||
use ra_text_edit::TextEdit;
|
||||
|
||||
use crate::{
|
||||
completion::{
|
||||
CompletionContext, CompletionItem, CompletionItemKind, CompletionKind, Completions,
|
||||
@ -7,15 +15,6 @@ use crate::{
|
||||
display::FunctionSignature,
|
||||
};
|
||||
|
||||
use hir::{self, Docs, HasSource};
|
||||
use ra_syntax::{
|
||||
ast::{self, edit},
|
||||
AstNode, SyntaxKind, SyntaxNode, TextRange,
|
||||
};
|
||||
|
||||
use ra_assists::utils::get_missing_impl_items;
|
||||
use ra_text_edit::TextEdit;
|
||||
|
||||
pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) {
|
||||
let trigger = ctx.token.ancestors().find(|p| match p.kind() {
|
||||
SyntaxKind::FN_DEF | SyntaxKind::TYPE_ALIAS_DEF | SyntaxKind::CONST_DEF => true,
|
||||
|
Loading…
Reference in New Issue
Block a user