mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix use std::{self}
This commit is contained in:
parent
16996e9947
commit
cd60998b9b
3 changed files with 43 additions and 13 deletions
|
@ -29,7 +29,7 @@ pub fn collect_tests(s: &str) -> Vec<(usize, Test)> {
|
|||
let prefix = "// ";
|
||||
let comment_blocks = s
|
||||
.lines()
|
||||
.map(str::trim_left)
|
||||
.map(str::trim_start)
|
||||
.enumerate()
|
||||
.group_by(|(_idx, line)| line.starts_with(prefix));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue