Skip to content

Commit a8a606c

Browse files
committed
Remove unrelated change
1 parent 1e9095a commit a8a606c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/ra_ide/src/syntax_highlighting.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,10 @@ fn highlight_element(
540540

541541
let expr = prefix_expr.expr()?;
542542
let ty = sema.type_of_expr(&expr)?;
543-
let mut h = HighlightTag::Operator.into();
544543
if !ty.is_raw_ptr() {
545-
h
544+
return None;
546545
} else {
547-
h |= HighlightModifier::Unsafe;
548-
h
546+
HighlightTag::Operator | HighlightModifier::Unsafe
549547
}
550548
}
551549
T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => {

0 commit comments

Comments
 (0)