aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-08 18:41:57 +0100
committerAleksey Kladov <[email protected]>2020-07-08 18:41:57 +0100
commit86aac4303f26281f72fbbacc0aaa8969a13ce7eb (patch)
tree91c97ff64c1c71fd723ab5a041457ff0dab84b94 /crates/ra_ide/src
parentdab7f3d2c6cd035f446fbdcda2442954da4afd3a (diff)
Reduce visibility
Diffstat (limited to 'crates/ra_ide/src')
-rw-r--r--crates/ra_ide/src/hover.rs16
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