aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting/highlight.rs
diff options
context:
space:
mode:
authorMaan2003 <[email protected]>2021-06-13 05:05:29 +0100
committerMaan2003 <[email protected]>2021-06-13 05:05:29 +0100
commitc50b4579ec842ac7c1f52e0e3c834d50fc9cd1bb (patch)
treee70b18936d014aa3038c4a6283e200f0a479aeb1 /crates/ide/src/syntax_highlighting/highlight.rs
parent75370312fbfe072947ffdc568eebc9cb4c6108e4 (diff)
clippy::useless_return
Diffstat (limited to 'crates/ide/src/syntax_highlighting/highlight.rs')
-rw-r--r--crates/ide/src/syntax_highlighting/highlight.rs4
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 8c0e553c0..e2cec21bc 100644
--- a/crates/ide/src/syntax_highlighting/highlight.rs
+++ b/crates/ide/src/syntax_highlighting/highlight.rs
@@ -527,9 +527,9 @@ fn highlight_name_ref_by_syntax(
527 527
528 match parent.kind() { 528 match parent.kind() {
529 METHOD_CALL_EXPR => { 529 METHOD_CALL_EXPR => {
530 return ast::MethodCallExpr::cast(parent) 530 ast::MethodCallExpr::cast(parent)
531 .and_then(|it| highlight_method_call(sema, krate, &it)) 531 .and_then(|it| highlight_method_call(sema, krate, &it))
532 .unwrap_or_else(|| SymbolKind::Function.into()); 532 .unwrap_or_else(|| SymbolKind::Function.into())
533 } 533 }
534 FIELD_EXPR => { 534 FIELD_EXPR => {
535 let h = HlTag::Symbol(SymbolKind::Field); 535 let h = HlTag::Symbol(SymbolKind::Field);