Skip to content

Commit 983726a

Browse files
committed
Don't show const items initializer expressions on hover
1 parent 472641f commit 983726a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/ide/src/display/short_label.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ impl ShortLabel for ast::TypeAlias {
7171

7272
impl ShortLabel for ast::Const {
7373
fn short_label(&self) -> Option<String> {
74-
let mut new_buf = short_label_from_ty(self, self.ty(), "const ")?;
75-
if let Some(expr) = self.body() {
76-
format_to!(new_buf, " = {}", expr.syntax());
77-
}
78-
Some(new_buf)
74+
short_label_from_ty(self, self.ty(), "const ")
7975
}
8076
}
8177

0 commit comments

Comments
 (0)