aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/display
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api/src/display')
-rw-r--r--crates/ra_ide_api/src/display/navigation_target.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs
index 9b17d6adc..80726efbb 100644
--- a/crates/ra_ide_api/src/display/navigation_target.rs
+++ b/crates/ra_ide_api/src/display/navigation_target.rs
@@ -54,12 +54,12 @@ impl NavigationTarget {
54 self.full_range 54 self.full_range
55 } 55 }
56 56
57 pub fn docs(&self) -> Option<String> { 57 pub fn docs(&self) -> Option<&str> {
58 self.docs.clone() 58 self.docs.as_ref().map(String::as_str)
59 } 59 }
60 60
61 pub fn description(&self) -> Option<String> { 61 pub fn description(&self) -> Option<&str> {
62 self.description.clone() 62 self.description.as_ref().map(String::as_str)
63 } 63 }
64 64
65 /// A "most interesting" range withing the `full_range`. 65 /// A "most interesting" range withing the `full_range`.