diff options
author | Ville Penttinen <[email protected]> | 2019-04-08 14:07:50 +0100 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-04-09 12:45:05 +0100 |
commit | bd6ddfcddebf532e5fa0fe89c00a53e59a5d0704 (patch) | |
tree | 8a91d61d4d4b8722ca88a295f3bb07b55287bf5b | |
parent | 7821c56be7fc1699f6fb748e45f4765162b75ba9 (diff) |
Make display modules private
-rw-r--r-- | crates/ra_ide_api/src/display.rs | 9 | ||||
-rw-r--r-- | crates/ra_ide_api/src/lib.rs | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/crates/ra_ide_api/src/display.rs b/crates/ra_ide_api/src/display.rs index 7a1f40fcf..e29ae3371 100644 --- a/crates/ra_ide_api/src/display.rs +++ b/crates/ra_ide_api/src/display.rs | |||
@@ -1,5 +1,9 @@ | |||
1 | //! This module contains utilities for turning SyntaxNodes and HIR types | 1 | //! This module contains utilities for turning SyntaxNodes and HIR types |
2 | //! into things that may be used to render in a UI. | 2 | //! into things that may be used to render in a UI. |
3 | |||
4 | mod navigation_target; | ||
5 | mod structure; | ||
6 | |||
3 | use super::*; | 7 | use super::*; |
4 | use std::fmt::{self, Display}; | 8 | use std::fmt::{self, Display}; |
5 | use join_to_string::join; | 9 | use join_to_string::join; |
@@ -7,11 +11,8 @@ use ra_syntax::{ast::{self, AstNode, NameOwner, VisibilityOwner, TypeParamsOwner | |||
7 | use std::convert::From; | 11 | use std::convert::From; |
8 | use hir::Docs; | 12 | use hir::Docs; |
9 | 13 | ||
10 | pub mod navigation_target; | ||
11 | pub mod structure; | ||
12 | |||
13 | pub use navigation_target::NavigationTarget; | 14 | pub use navigation_target::NavigationTarget; |
14 | pub use structure::StructureNode; | 15 | pub use structure::{StructureNode, file_structure}; |
15 | 16 | ||
16 | pub(crate) fn function_label(node: &ast::FnDef) -> String { | 17 | pub(crate) fn function_label(node: &ast::FnDef) -> String { |
17 | FunctionSignature::from(node).to_string() | 18 | FunctionSignature::from(node).to_string() |
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index 974820a69..d25795adc 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs | |||
@@ -69,7 +69,7 @@ pub use crate::{ | |||
69 | folding_ranges::{Fold, FoldKind}, | 69 | folding_ranges::{Fold, FoldKind}, |
70 | syntax_highlighting::HighlightedRange, | 70 | syntax_highlighting::HighlightedRange, |
71 | diagnostics::Severity, | 71 | diagnostics::Severity, |
72 | display::{FunctionSignature, NavigationTarget, structure::{StructureNode, file_structure}}, | 72 | display::{FunctionSignature, NavigationTarget, StructureNode, file_structure}, |
73 | }; | 73 | }; |
74 | 74 | ||
75 | pub use ra_db::{ | 75 | pub use ra_db::{ |