From 30bf7e43db2667470875ea4477a95aa297896851 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 12 Nov 2019 15:41:02 +0300 Subject: Disallow regressing crate docs --- crates/ra_cfg/src/lib.rs | 5 +++-- crates/ra_fmt/src/lib.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'crates') diff --git a/crates/ra_cfg/src/lib.rs b/crates/ra_cfg/src/lib.rs index 1bee3eb99..51d953f6e 100644 --- a/crates/ra_cfg/src/lib.rs +++ b/crates/ra_cfg/src/lib.rs @@ -1,11 +1,12 @@ //! ra_cfg defines conditional compiling options, `cfg` attibute parser and evaluator + +mod cfg_expr; + use std::iter::IntoIterator; use ra_syntax::SmolStr; use rustc_hash::FxHashSet; -mod cfg_expr; - pub use cfg_expr::{parse_cfg, CfgExpr}; /// Configuration options used for conditional compilition on items with `cfg` attributes. diff --git a/crates/ra_fmt/src/lib.rs b/crates/ra_fmt/src/lib.rs index e22ac9753..a30ed4cbb 100644 --- a/crates/ra_fmt/src/lib.rs +++ b/crates/ra_fmt/src/lib.rs @@ -1,5 +1,7 @@ //! This crate provides some utilities for indenting rust code. -//! + +use std::iter::successors; + use itertools::Itertools; use ra_syntax::{ ast::{self, AstNode, AstToken}, @@ -7,7 +9,6 @@ use ra_syntax::{ SyntaxKind::*, SyntaxNode, SyntaxToken, T, }; -use std::iter::successors; pub fn reindent(text: &str, indent: &str) -> String { let indent = format!("\n{}", indent); -- cgit v1.2.3