diff options
author | Aleksey Kladov <[email protected]> | 2019-11-22 08:36:14 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-11-22 08:36:14 +0000 |
commit | a87e9145a67634a5ea8a893ab8b52b3c07108a13 (patch) | |
tree | 60339d4a73be3b0bdca0130239a764c580283501 /crates/ra_ide_api/src/completion | |
parent | e42f9627664cc3c44094e1c4f985270fbfd592b1 (diff) |
Rename Atts trait
Diffstat (limited to 'crates/ra_ide_api/src/completion')
-rw-r--r-- | crates/ra_ide_api/src/completion/presentation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/completion/presentation.rs b/crates/ra_ide_api/src/completion/presentation.rs index cbaf169bf..bd464d193 100644 --- a/crates/ra_ide_api/src/completion/presentation.rs +++ b/crates/ra_ide_api/src/completion/presentation.rs | |||
@@ -1,6 +1,6 @@ | |||
1 | //! This modules takes care of rendering various definitions as completion items. | 1 | //! This modules takes care of rendering various definitions as completion items. |
2 | 2 | ||
3 | use hir::{db::HirDatabase, Attrs, Docs, HasSource, HirDisplay, ScopeDef, Ty, TypeWalk}; | 3 | use hir::{db::HirDatabase, Docs, HasAttrs, HasSource, HirDisplay, ScopeDef, Ty, TypeWalk}; |
4 | use join_to_string::join; | 4 | use join_to_string::join; |
5 | use ra_syntax::ast::NameOwner; | 5 | use ra_syntax::ast::NameOwner; |
6 | use test_utils::tested_by; | 6 | use test_utils::tested_by; |
@@ -285,7 +285,7 @@ impl Completions { | |||
285 | } | 285 | } |
286 | } | 286 | } |
287 | 287 | ||
288 | fn is_deprecated(node: impl Attrs, db: &impl HirDatabase) -> bool { | 288 | fn is_deprecated(node: impl HasAttrs, db: &impl HirDatabase) -> bool { |
289 | node.attrs(db).has_atom("deprecated") | 289 | node.attrs(db).has_atom("deprecated") |
290 | } | 290 | } |
291 | 291 | ||