Minor
This commit is contained in:
@@ -706,8 +706,7 @@ fn highlight_func_by_name_ref(
|
|||||||
sema: &Semantics<RootDatabase>,
|
sema: &Semantics<RootDatabase>,
|
||||||
name_ref: &ast::NameRef,
|
name_ref: &ast::NameRef,
|
||||||
) -> Option<Highlight> {
|
) -> Option<Highlight> {
|
||||||
let parent = name_ref.syntax().parent()?;
|
let method_call = name_ref.syntax().parent().and_then(ast::MethodCallExpr::cast)?;
|
||||||
let method_call = ast::MethodCallExpr::cast(parent)?;
|
|
||||||
highlight_method_call(sema, &method_call)
|
highlight_method_call(sema, &method_call)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user