Disallow regressing crate docs

This commit is contained in:
Aleksey Kladov 2019-11-12 15:41:02 +03:00
parent d09e5a3d9e
commit 30bf7e43db
3 changed files with 49 additions and 10 deletions

View file

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