From bd6ddfcddebf532e5fa0fe89c00a53e59a5d0704 Mon Sep 17 00:00:00 2001 From: Ville Penttinen Date: Mon, 8 Apr 2019 16:07:50 +0300 Subject: Make display modules private --- crates/ra_ide_api/src/display.rs | 9 +++++---- 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 @@ //! This module contains utilities for turning SyntaxNodes and HIR types //! into things that may be used to render in a UI. + +mod navigation_target; +mod structure; + use super::*; use std::fmt::{self, Display}; use join_to_string::join; @@ -7,11 +11,8 @@ use ra_syntax::{ast::{self, AstNode, NameOwner, VisibilityOwner, TypeParamsOwner use std::convert::From; use hir::Docs; -pub mod navigation_target; -pub mod structure; - pub use navigation_target::NavigationTarget; -pub use structure::StructureNode; +pub use structure::{StructureNode, file_structure}; pub(crate) fn function_label(node: &ast::FnDef) -> String { 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::{ folding_ranges::{Fold, FoldKind}, syntax_highlighting::HighlightedRange, diagnostics::Severity, - display::{FunctionSignature, NavigationTarget, structure::{StructureNode, file_structure}}, + display::{FunctionSignature, NavigationTarget, StructureNode, file_structure}, }; pub use ra_db::{ -- cgit v1.2.3