diff --git a/src/server/semantic_tokens/mod.rs b/src/server/semantic_tokens/mod.rs index 6dd3dee3..b8c2160f 100644 --- a/src/server/semantic_tokens/mod.rs +++ b/src/server/semantic_tokens/mod.rs @@ -222,10 +222,7 @@ fn token_from_ident(ident: &LinkedNode) -> TokenType { fn get_expr_following_hashtag<'a>(hashtag: &LinkedNode<'a>) -> Option> { hashtag .next_sibling() - .filter(|next| { - next.cast::() - .map_or(false, |expr| expr.hash()) - }) + .filter(|next| next.cast::().map_or(false, |expr| expr.hash())) .and_then(|node| node.leftmost_leaf()) }