From a8a606cdc4abc3e7f5938ffaf0128b0935b3ab8a Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Tue, 23 Jun 2020 12:40:55 -0400 Subject: Remove unrelated change --- crates/ra_ide/src/syntax_highlighting.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'crates/ra_ide/src') diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index 4061a335e..91f27aa2a 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs @@ -540,12 +540,10 @@ fn highlight_element( let expr = prefix_expr.expr()?; let ty = sema.type_of_expr(&expr)?; - let mut h = HighlightTag::Operator.into(); if !ty.is_raw_ptr() { - h + return None; } else { - h |= HighlightModifier::Unsafe; - h + HighlightTag::Operator | HighlightModifier::Unsafe } } T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { -- cgit v1.2.3