mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-03 01:16:14 +03:00
Reduce visibility
This commit is contained in:
@@ -77,10 +77,6 @@ pub fn new() -> HoverResult {
|
||||
Self::default()
|
||||
}
|
||||
|
||||
pub fn extend(&mut self, item: Option<String>) {
|
||||
self.results.extend(item);
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.results.is_empty()
|
||||
}
|
||||
@@ -100,11 +96,6 @@ pub fn results(&self) -> &[String] {
|
||||
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 @@ pub fn push_action(&mut self, action: HoverAction) {
|
||||
pub fn to_markup(&self) -> String {
|
||||
self.results.join("\n\n___\n")
|
||||
}
|
||||
|
||||
fn extend(&mut self, item: Option<String>) {
|
||||
self.results.extend(item);
|
||||
}
|
||||
fn push_action(&mut self, action: HoverAction) {
|
||||
self.actions.push(action);
|
||||
}
|
||||
}
|
||||
|
||||
// Feature: Hover
|
||||
|
||||
Reference in New Issue
Block a user