diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-09 16:23:51 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-09 16:23:51 +0000 |
commit | c45ac6effe37562daa97e6675c54963252f65664 (patch) | |
tree | 9f00979cde7fa508ab0b583fa0deeaa79236b7db /crates/ide/src/display | |
parent | c2359608c926d4828f2b112e7069978449851d58 (diff) | |
parent | 814d617d348c23507fd444e58515c9bff6b73105 (diff) |
Merge #7942
7942: Show whether a binding is mutable or not on hover r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide/src/display')
-rw-r--r-- | crates/ide/src/display/short_label.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ide/src/display/short_label.rs b/crates/ide/src/display/short_label.rs index 84b8883de..2df9266b4 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 { | |||
71 | 71 | ||
72 | impl ShortLabel for ast::Const { | 72 | impl ShortLabel for ast::Const { |
73 | fn short_label(&self) -> Option<String> { | 73 | fn short_label(&self) -> Option<String> { |
74 | let mut new_buf = short_label_from_ty(self, self.ty(), "const ")?; | 74 | 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) | ||
79 | } | 75 | } |
80 | } | 76 | } |
81 | 77 | ||