mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-15 06:33:58 +00:00
Reduce visibility
This commit is contained in:
parent
dab7f3d2c6
commit
86aac4303f
1 changed files with 7 additions and 9 deletions
|
@ -77,10 +77,6 @@ impl HoverResult {
|
||||||
Self::default()
|
Self::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn extend(&mut self, item: Option<String>) {
|
|
||||||
self.results.extend(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn is_empty(&self) -> bool {
|
pub fn is_empty(&self) -> bool {
|
||||||
self.results.is_empty()
|
self.results.is_empty()
|
||||||
}
|
}
|
||||||
|
@ -100,11 +96,6 @@ impl HoverResult {
|
||||||
pub fn actions(&self) -> &[HoverAction] {
|
pub fn actions(&self) -> &[HoverAction] {
|
||||||
&self.actions
|
&self.actions
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn push_action(&mut self, action: HoverAction) {
|
|
||||||
self.actions.push(action);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the results converted into markup
|
/// Returns the results converted into markup
|
||||||
/// for displaying in a UI
|
/// for displaying in a UI
|
||||||
///
|
///
|
||||||
|
@ -112,6 +103,13 @@ impl HoverResult {
|
||||||
pub fn to_markup(&self) -> String {
|
pub fn to_markup(&self) -> String {
|
||||||
self.results.join("\n\n___\n")
|
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
|
// Feature: Hover
|
||||||
|
|
Loading…
Reference in a new issue