diff options
Diffstat (limited to 'crates/ra_ide_api/src/display/navigation_target.rs')
-rw-r--r-- | crates/ra_ide_api/src/display/navigation_target.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/display/navigation_target.rs b/crates/ra_ide_api/src/display/navigation_target.rs index 983ebe788..cfd3f5478 100644 --- a/crates/ra_ide_api/src/display/navigation_target.rs +++ b/crates/ra_ide_api/src/display/navigation_target.rs | |||
@@ -413,7 +413,7 @@ impl NavigationTarget { | |||
413 | } | 413 | } |
414 | } | 414 | } |
415 | 415 | ||
416 | fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> { | 416 | pub(crate) fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> { |
417 | let file = db.parse(symbol.file_id).tree; | 417 | let file = db.parse(symbol.file_id).tree; |
418 | let node = symbol.ptr.to_node(file.syntax()).to_owned(); | 418 | let node = symbol.ptr.to_node(file.syntax()).to_owned(); |
419 | 419 | ||
@@ -439,7 +439,7 @@ fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> { | |||
439 | /// Get a description of a symbol. | 439 | /// Get a description of a symbol. |
440 | /// | 440 | /// |
441 | /// e.g. `struct Name`, `enum Name`, `fn Name` | 441 | /// e.g. `struct Name`, `enum Name`, `fn Name` |
442 | fn description_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> { | 442 | pub(crate) fn description_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option<String> { |
443 | let file = db.parse(symbol.file_id).tree; | 443 | let file = db.parse(symbol.file_id).tree; |
444 | let node = symbol.ptr.to_node(file.syntax()).to_owned(); | 444 | let node = symbol.ptr.to_node(file.syntax()).to_owned(); |
445 | 445 | ||