diff options
author | Ville Penttinen <[email protected]> | 2019-04-08 14:04:58 +0100 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-04-09 12:45:05 +0100 |
commit | 7821c56be7fc1699f6fb748e45f4765162b75ba9 (patch) | |
tree | f767349ff3fa8e2df9b4dc66e945cc8df2b124d4 /crates/ra_ide_api/src/display.rs | |
parent | 027d4d229d7be91630de95d0d3ef004327828bd6 (diff) |
Move structure to display/structure
Diffstat (limited to 'crates/ra_ide_api/src/display.rs')
-rw-r--r-- | crates/ra_ide_api/src/display.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/display.rs b/crates/ra_ide_api/src/display.rs index f0c818933..7a1f40fcf 100644 --- a/crates/ra_ide_api/src/display.rs +++ b/crates/ra_ide_api/src/display.rs | |||
@@ -1,5 +1,5 @@ | |||
1 | //! This module contains utilities for rendering turning things into something | 1 | //! This module contains utilities for turning SyntaxNodes and HIR types |
2 | //! that may be used to render in UI. | 2 | //! into things that may be used to render in a UI. |
3 | use super::*; | 3 | use super::*; |
4 | use std::fmt::{self, Display}; | 4 | use std::fmt::{self, Display}; |
5 | use join_to_string::join; | 5 | use join_to_string::join; |
@@ -8,8 +8,10 @@ use std::convert::From; | |||
8 | use hir::Docs; | 8 | use hir::Docs; |
9 | 9 | ||
10 | pub mod navigation_target; | 10 | pub mod navigation_target; |
11 | pub mod structure; | ||
11 | 12 | ||
12 | pub use navigation_target::NavigationTarget; | 13 | pub use navigation_target::NavigationTarget; |
14 | pub use structure::StructureNode; | ||
13 | 15 | ||
14 | pub(crate) fn function_label(node: &ast::FnDef) -> String { | 16 | pub(crate) fn function_label(node: &ast::FnDef) -> String { |
15 | FunctionSignature::from(node).to_string() | 17 | FunctionSignature::from(node).to_string() |