diff --git a/crates/ide/src/display/short_label.rs b/crates/ide/src/display/short_label.rs index 84b8883de5..2df9266b41 100644 --- a/crates/ide/src/display/short_label.rs +++ b/crates/ide/src/display/short_label.rs @@ -71,11 +71,7 @@ impl ShortLabel for ast::TypeAlias { impl ShortLabel for ast::Const { fn short_label(&self) -> Option { - let mut new_buf = short_label_from_ty(self, self.ty(), "const ")?; - if let Some(expr) = self.body() { - format_to!(new_buf, " = {}", expr.syntax()); - } - Some(new_buf) + short_label_from_ty(self, self.ty(), "const ") } }