diff options
author | Chetan Khilosiya <[email protected]> | 2021-03-30 20:17:37 +0100 |
---|---|---|
committer | Chetan Khilosiya <[email protected]> | 2021-03-30 20:17:37 +0100 |
commit | d0fcd5c5e054efd64585fc3f3eff55fe7bfa1ce2 (patch) | |
tree | 99c29e89962b16551a30041850cd7076c4fc4505 /crates/ide/src/syntax_highlighting | |
parent | d7dcd41801b319f64f3ca2ed22735ab70092e491 (diff) |
8024: Fix for function name change.
Diffstat (limited to 'crates/ide/src/syntax_highlighting')
-rw-r--r-- | crates/ide/src/syntax_highlighting/highlight.rs | 4 |
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 | } |