aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Penttinen <[email protected]>2019-04-08 14:07:50 +0100
committerVille Penttinen <[email protected]>2019-04-09 12:45:05 +0100
commitbd6ddfcddebf532e5fa0fe89c00a53e59a5d0704 (patch)
tree8a91d61d4d4b8722ca88a295f3bb07b55287bf5b
parent7821c56be7fc1699f6fb748e45f4765162b75ba9 (diff)
Make display modules private
-rw-r--r--crates/ra_ide_api/src/display.rs9
-rw-r--r--crates/ra_ide_api/src/lib.rs2
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
4mod navigation_target;
5mod structure;
6
3use super::*; 7use super::*;
4use std::fmt::{self, Display}; 8use std::fmt::{self, Display};
5use join_to_string::join; 9use join_to_string::join;
@@ -7,11 +11,8 @@ use ra_syntax::{ast::{self, AstNode, NameOwner, VisibilityOwner, TypeParamsOwner
7use std::convert::From; 11use std::convert::From;
8use hir::Docs; 12use hir::Docs;
9 13
10pub mod navigation_target;
11pub mod structure;
12
13pub use navigation_target::NavigationTarget; 14pub use navigation_target::NavigationTarget;
14pub use structure::StructureNode; 15pub use structure::{StructureNode, file_structure};
15 16
16pub(crate) fn function_label(node: &ast::FnDef) -> String { 17pub(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
75pub use ra_db::{ 75pub use ra_db::{