aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
authorMaan2003 <[email protected]>2021-06-13 05:18:15 +0100
committerMaan2003 <[email protected]>2021-06-13 05:18:15 +0100
commit5ac6804bb3a07b959e8c2c3534255a8d6bb4948c (patch)
tree5109aa4e5ab163d687c1f7eb1de446cbd6a6cacd /crates/ide
parentaabd41cafc1a79f5ad124a31a360ab0442c13efd (diff)
cargo fmt
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/syntax_highlighting/highlight.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs
index e2cec21bc..7a53268e8 100644
--- a/crates/ide/src/syntax_highlighting/highlight.rs
+++ b/crates/ide/src/syntax_highlighting/highlight.rs
@@ -526,11 +526,9 @@ fn highlight_name_ref_by_syntax(
526 }; 526 };
527 527
528 match parent.kind() { 528 match parent.kind() {
529 METHOD_CALL_EXPR => { 529 METHOD_CALL_EXPR => ast::MethodCallExpr::cast(parent)
530 ast::MethodCallExpr::cast(parent) 530 .and_then(|it| highlight_method_call(sema, krate, &it))
531 .and_then(|it| highlight_method_call(sema, krate, &it)) 531 .unwrap_or_else(|| SymbolKind::Function.into()),
532 .unwrap_or_else(|| SymbolKind::Function.into())
533 }
534 FIELD_EXPR => { 532 FIELD_EXPR => {
535 let h = HlTag::Symbol(SymbolKind::Field); 533 let h = HlTag::Symbol(SymbolKind::Field);
536 let is_union = ast::FieldExpr::cast(parent) 534 let is_union = ast::FieldExpr::cast(parent)