Don't show const items initializer expressions on hover
This commit is contained in:
parent
472641fc5b
commit
983726a45c
@ -71,11 +71,7 @@ fn short_label(&self) -> Option<String> {
|
|||||||
|
|
||||||
impl ShortLabel for ast::Const {
|
impl ShortLabel for ast::Const {
|
||||||
fn short_label(&self) -> Option<String> {
|
fn short_label(&self) -> Option<String> {
|
||||||
let mut new_buf = short_label_from_ty(self, self.ty(), "const ")?;
|
short_label_from_ty(self, self.ty(), "const ")
|
||||||
if let Some(expr) = self.body() {
|
|
||||||
format_to!(new_buf, " = {}", expr.syntax());
|
|
||||||
}
|
|
||||||
Some(new_buf)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user