Reordered the use items.
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
//! FIXME: write short doc here
|
//! 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::{
|
use crate::{
|
||||||
completion::{
|
completion::{
|
||||||
CompletionContext, CompletionItem, CompletionItemKind, CompletionKind, Completions,
|
CompletionContext, CompletionItem, CompletionItemKind, CompletionKind, Completions,
|
||||||
@@ -7,15 +15,6 @@ use crate::{
|
|||||||
display::FunctionSignature,
|
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) {
|
pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) {
|
||||||
let trigger = ctx.token.ancestors().find(|p| match p.kind() {
|
let trigger = ctx.token.ancestors().find(|p| match p.kind() {
|
||||||
SyntaxKind::FN_DEF | SyntaxKind::TYPE_ALIAS_DEF | SyntaxKind::CONST_DEF => true,
|
SyntaxKind::FN_DEF | SyntaxKind::TYPE_ALIAS_DEF | SyntaxKind::CONST_DEF => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user