mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
cargo fmt
This commit is contained in:
parent
87f837cec7
commit
7535bb4661
571 changed files with 2210 additions and 2458 deletions
|
|
@ -202,11 +202,7 @@ pub fn trim_indent(mut text: &str) -> String {
|
|||
text.split_inclusive('\n')
|
||||
.map(
|
||||
|line| {
|
||||
if line.len() <= indent {
|
||||
line.trim_start_matches(' ')
|
||||
} else {
|
||||
&line[indent..]
|
||||
}
|
||||
if line.len() <= indent { line.trim_start_matches(' ') } else { &line[indent..] }
|
||||
},
|
||||
)
|
||||
.collect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue