fix use std::{self}

This commit is contained in:
gfreezy 2018-12-27 00:51:27 +08:00
parent 16996e9947
commit cd60998b9b
3 changed files with 43 additions and 13 deletions

View file

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