From 86aac4303f26281f72fbbacc0aaa8969a13ce7eb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 8 Jul 2020 19:41:57 +0200 Subject: Reduce visibility --- crates/ra_ide/src/hover.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'crates/ra_ide') 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 { Self::default() } - pub fn extend(&mut self, item: Option) { - self.results.extend(item); - } - pub fn is_empty(&self) -> bool { self.results.is_empty() } @@ -100,11 +96,6 @@ impl HoverResult { pub fn actions(&self) -> &[HoverAction] { &self.actions } - - pub fn push_action(&mut self, action: HoverAction) { - self.actions.push(action); - } - /// Returns the results converted into markup /// for displaying in a UI /// @@ -112,6 +103,13 @@ impl HoverResult { pub fn to_markup(&self) -> String { self.results.join("\n\n___\n") } + + fn extend(&mut self, item: Option) { + self.results.extend(item); + } + fn push_action(&mut self, action: HoverAction) { + self.actions.push(action); + } } // Feature: Hover -- cgit v1.2.3