diff options
author | GrayJack <[email protected]> | 2020-10-16 11:52:18 +0100 |
---|---|---|
committer | GrayJack <[email protected]> | 2020-10-16 11:52:18 +0100 |
commit | a483b5545dad2d36336c1e9a4f5dc991d2c8460b (patch) | |
tree | 4a9a2a515fa205a316f662cfa12a9cd220055875 /crates/ide | |
parent | 83d6bc7113080c9bf3fd70bed1b89c6b4795d826 (diff) |
Add Callable modifier for variables that implements Fnonce
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/syntax_highlighting.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index 3982838d5..750848467 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs | |||
@@ -763,7 +763,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight { | |||
763 | if local.is_mut(db) || local.ty(db).is_mutable_reference() { | 763 | if local.is_mut(db) || local.ty(db).is_mutable_reference() { |
764 | h |= HighlightModifier::Mutable; | 764 | h |= HighlightModifier::Mutable; |
765 | } | 765 | } |
766 | if local.ty(db).as_callable(db).is_some() { | 766 | if local.ty(db).as_callable(db).is_some() || local.ty(db).impls_fnonce(db) { |
767 | h |= HighlightModifier::Callable; | 767 | h |= HighlightModifier::Callable; |
768 | } | 768 | } |
769 | return h; | 769 | return h; |