From 5ac6804bb3a07b959e8c2c3534255a8d6bb4948c Mon Sep 17 00:00:00 2001 From: Maan2003 Date: Sun, 13 Jun 2021 09:48:15 +0530 Subject: cargo fmt --- crates/ide/src/syntax_highlighting/highlight.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'crates/ide') 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( }; match parent.kind() { - METHOD_CALL_EXPR => { - ast::MethodCallExpr::cast(parent) - .and_then(|it| highlight_method_call(sema, krate, &it)) - .unwrap_or_else(|| SymbolKind::Function.into()) - } + METHOD_CALL_EXPR => ast::MethodCallExpr::cast(parent) + .and_then(|it| highlight_method_call(sema, krate, &it)) + .unwrap_or_else(|| SymbolKind::Function.into()), FIELD_EXPR => { let h = HlTag::Symbol(SymbolKind::Field); let is_union = ast::FieldExpr::cast(parent) -- cgit v1.2.3