aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-05-04 14:07:51 +0100
committerAleksey Kladov <[email protected]>2020-05-04 14:33:08 +0100
commite9643ab74ca2559d38085a38f7d351991c896abb (patch)
treedc832d7fabef7d6fb36fffd865a731e795ab7421
parent71f6d58e310af0f67fba8bb9f59ea9777ecf24d0 (diff)
Cleanup imports
-rw-r--r--crates/ra_ide/src/completion/complete_attribute.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/ra_ide/src/completion/complete_attribute.rs b/crates/ra_ide/src/completion/complete_attribute.rs
index 20e6edc17..4eaaa0b6f 100644
--- a/crates/ra_ide/src/completion/complete_attribute.rs
+++ b/crates/ra_ide/src/completion/complete_attribute.rs
@@ -3,15 +3,17 @@
3//! This module uses a bit of static metadata to provide completions 3//! This module uses a bit of static metadata to provide completions
4//! for built-in attributes. 4//! for built-in attributes.
5 5
6use super::completion_context::CompletionContext;
7use super::completion_item::{CompletionItem, CompletionItemKind, CompletionKind, Completions};
8use ast::AttrInput;
9use ra_syntax::{ 6use ra_syntax::{
10 ast::{self, AttrKind}, 7 ast::{self, AttrInput, AttrKind},
11 AstNode, SyntaxKind, 8 AstNode, SyntaxKind,
12}; 9};
13use rustc_hash::FxHashSet; 10use rustc_hash::FxHashSet;
14 11
12use crate::completion::{
13 completion_context::CompletionContext,
14 completion_item::{CompletionItem, CompletionItemKind, CompletionKind, Completions},
15};
16
15pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> { 17pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext) -> Option<()> {
16 let attribute = ctx.attribute_under_caret.as_ref()?; 18 let attribute = ctx.attribute_under_caret.as_ref()?;
17 19