aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorPaul Daniel Faria <[email protected]>2020-06-15 12:19:45 +0100
committerPaul Daniel Faria <[email protected]>2020-08-10 13:44:54 +0100
commitfd30134cf84b134259fe8140e513b152e37f3f88 (patch)
treedd1570e0399fe25a6d8eb3d0bfdbb1b11c51f50c /crates/ra_ide
parent263f9a7f231a474dd56d02adbcd7c57d079e88fd (diff)
Remove token tree from ReprKind::Other variant, expose ReprKind higher, remove debug println.
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 }