Make display modules private

This commit is contained in:
Ville Penttinen 2019-04-08 16:07:50 +03:00
parent 7821c56be7
commit bd6ddfcdde
2 changed files with 6 additions and 5 deletions

View file

@ -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()