mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Reordered the use
items.
This commit is contained in:
parent
be97cbfdb4
commit
fc13b7fc9a
1 changed files with 8 additions and 9 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue