mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Disallow regressing crate docs
This commit is contained in:
parent
d09e5a3d9e
commit
30bf7e43db
3 changed files with 49 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue