diff options
-rw-r--r-- | crates/ra_ide/src/hover.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index eaba2b61e..0e9aa44de 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs | |||
@@ -77,10 +77,6 @@ impl HoverResult { | |||
77 | Self::default() | 77 | Self::default() |
78 | } | 78 | } |
79 | 79 | ||
80 | pub fn extend(&mut self, item: Option<String>) { | ||
81 | self.results.extend(item); | ||
82 | } | ||
83 | |||
84 | pub fn is_empty(&self) -> bool { | 80 | pub fn is_empty(&self) -> bool { |
85 | self.results.is_empty() | 81 | self.results.is_empty() |
86 | } | 82 | } |
@@ -100,11 +96,6 @@ impl HoverResult { | |||
100 | pub fn actions(&self) -> &[HoverAction] { | 96 | pub fn actions(&self) -> &[HoverAction] { |
101 | &self.actions | 97 | &self.actions |
102 | } | 98 | } |
103 | |||
104 | pub fn push_action(&mut self, action: HoverAction) { | ||
105 | self.actions.push(action); | ||
106 | } | ||
107 | |||
108 | /// Returns the results converted into markup | 99 | /// Returns the results converted into markup |
109 | /// for displaying in a UI | 100 | /// for displaying in a UI |
110 | /// | 101 | /// |
@@ -112,6 +103,13 @@ impl HoverResult { | |||
112 | pub fn to_markup(&self) -> String { | 103 | pub fn to_markup(&self) -> String { |
113 | self.results.join("\n\n___\n") | 104 | self.results.join("\n\n___\n") |
114 | } | 105 | } |
106 | |||
107 | fn extend(&mut self, item: Option<String>) { | ||
108 | self.results.extend(item); | ||
109 | } | ||
110 | fn push_action(&mut self, action: HoverAction) { | ||
111 | self.actions.push(action); | ||
112 | } | ||
115 | } | 113 | } |
116 | 114 | ||
117 | // Feature: Hover | 115 | // Feature: Hover |