Skip to content

Commit 8f44783

Browse files
committed
Qualify ast types
1 parent e9643ab commit 8f44783

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

crates/ra_ide/src/completion/complete_attribute.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
//! This module uses a bit of static metadata to provide completions
44
//! for built-in attributes.
55
6-
use ra_syntax::{
7-
ast::{self, AttrInput, AttrKind},
8-
AstNode, SyntaxKind,
9-
};
6+
use ra_syntax::{ast, AstNode, SyntaxKind};
107
use rustc_hash::FxHashSet;
118

129
use crate::completion::{
@@ -18,7 +15,9 @@ pub(super) fn complete_attribute(acc: &mut Completions, ctx: &CompletionContext)
1815
let attribute = ctx.attribute_under_caret.as_ref()?;
1916

2017
match (attribute.path(), attribute.input()) {
21-
(Some(path), Some(AttrInput::TokenTree(token_tree))) if path.to_string() == "derive" => {
18+
(Some(path), Some(ast::AttrInput::TokenTree(token_tree)))
19+
if path.to_string() == "derive" =>
20+
{
2221
complete_derive(acc, ctx, token_tree)
2322
}
2423
_ => complete_attribute_start(acc, ctx, attribute),
@@ -42,7 +41,7 @@ fn complete_attribute_start(acc: &mut Completions, ctx: &CompletionContext, attr
4241
_ => {}
4342
}
4443

45-
if attribute.kind() == AttrKind::Inner || !attr_completion.should_be_inner {
44+
if attribute.kind() == ast::AttrKind::Inner || !attr_completion.should_be_inner {
4645
acc.add(item);
4746
}
4847
}

0 commit comments

Comments
 (0)