aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting
diff options
context:
space:
mode:
authorChetan Khilosiya <[email protected]>2021-03-30 20:17:37 +0100
committerChetan Khilosiya <[email protected]>2021-03-30 20:17:37 +0100
commitd0fcd5c5e054efd64585fc3f3eff55fe7bfa1ce2 (patch)
tree99c29e89962b16551a30041850cd7076c4fc4505 /crates/ide/src/syntax_highlighting
parentd7dcd41801b319f64f3ca2ed22735ab70092e491 (diff)
8024: Fix for function name change.
Diffstat (limited to 'crates/ide/src/syntax_highlighting')
-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 }