diff options
author | Paul Daniel Faria <[email protected]> | 2020-06-23 17:40:55 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-06-23 17:40:55 +0100 |
commit | a8a606cdc4abc3e7f5938ffaf0128b0935b3ab8a (patch) | |
tree | 9dd945d3fa1d8fb066755ab3fbd57cf36e26957d /crates/ra_ide/src | |
parent | 1e9095ae8c98813ba2e89318f35f0ec15cc833b3 (diff) |
Remove unrelated change
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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( | |||
540 | 540 | ||
541 | let expr = prefix_expr.expr()?; | 541 | let expr = prefix_expr.expr()?; |
542 | let ty = sema.type_of_expr(&expr)?; | 542 | let ty = sema.type_of_expr(&expr)?; |
543 | let mut h = HighlightTag::Operator.into(); | ||
544 | if !ty.is_raw_ptr() { | 543 | if !ty.is_raw_ptr() { |
545 | h | 544 | return None; |
546 | } else { | 545 | } else { |
547 | h |= HighlightModifier::Unsafe; | 546 | HighlightTag::Operator | HighlightModifier::Unsafe |
548 | h | ||
549 | } | 547 | } |
550 | } | 548 | } |
551 | T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { | 549 | T![!] if element.parent().and_then(ast::MacroCall::cast).is_some() => { |