aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/syntax_highlighting/highlight.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs
index e218b3dc8..5ccb84714 100644
--- a/crates/ide/src/syntax_highlighting/highlight.rs
+++ b/crates/ide/src/syntax_highlighting/highlight.rs
@@ -283,7 +283,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
283 283
284 match item.container(db) { 284 match item.container(db) {
285 AssocItemContainer::Impl(i) => { 285 AssocItemContainer::Impl(i) => {
286 if i.target_trait(db).is_some() { 286 if i.trait_(db).is_some() {
287 h |= HlMod::Trait; 287 h |= HlMod::Trait;
288 } 288 }
289 } 289 }
@@ -308,7 +308,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
308 h |= HlMod::Associated; 308 h |= HlMod::Associated;
309 match item.container(db) { 309 match item.container(db) {
310 AssocItemContainer::Impl(i) => { 310 AssocItemContainer::Impl(i) => {
311 if i.target_trait(db).is_some() { 311 if i.trait_(db).is_some() {
312 h |= HlMod::Trait; 312 h |= HlMod::Trait;
313 } 313 }
314 } 314 }