From fc13b7fc9a9944f33170a8f1ce13782dc5bde781 Mon Sep 17 00:00:00 2001 From: Kevin DeLorey <2295721+kdelorey@users.noreply.github.com> Date: Fri, 14 Feb 2020 18:54:00 -0600 Subject: Reordered the `use` items. --- crates/ra_ide/src/completion/complete_trait_impl.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'crates') diff --git a/crates/ra_ide/src/completion/complete_trait_impl.rs b/crates/ra_ide/src/completion/complete_trait_impl.rs index bff19c5bb..54301cdf2 100644 --- a/crates/ra_ide/src/completion/complete_trait_impl.rs +++ b/crates/ra_ide/src/completion/complete_trait_impl.rs @@ -1,21 +1,20 @@ //! FIXME: write short doc here -use crate::{ - completion::{ - CompletionContext, CompletionItem, CompletionItemKind, CompletionKind, Completions, - }, - display::FunctionSignature, -}; - 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_assists::utils::get_missing_impl_items; use ra_text_edit::TextEdit; +use crate::{ + completion::{ + CompletionContext, CompletionItem, CompletionItemKind, CompletionKind, Completions, + }, + display::FunctionSignature, +}; + 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, -- cgit v1.2.3