8024: Fix for function name change.

This commit is contained in:
Chetan Khilosiya 2021-03-31 00:47:37 +05:30
parent d7dcd41801
commit d0fcd5c5e0

View File

@ -283,7 +283,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
match item.container(db) {
AssocItemContainer::Impl(i) => {
if i.target_trait(db).is_some() {
if i.trait_(db).is_some() {
h |= HlMod::Trait;
}
}
@ -308,7 +308,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
h |= HlMod::Associated;
match item.container(db) {
AssocItemContainer::Impl(i) => {
if i.target_trait(db).is_some() {
if i.trait_(db).is_some() {
h |= HlMod::Trait;
}
}