aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index 0cab684eb..b82b51efd 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -574,13 +574,7 @@ fn highlight_element(
574 }; 574 };
575 575
576 let expr = field_expr.expr()?; 576 let expr = field_expr.expr()?;
577 let ty = match sema.type_of_expr(&expr) { 577 let ty = sema.type_of_expr(&expr)?;
578 Some(ty) => ty,
579 None => {
580 println!("No type :(");
581 return None;
582 }
583 };
584 if !ty.is_packed(db) { 578 if !ty.is_packed(db) {
585 return None; 579 return None;
586 } 580 }