diff options
author | gfreezy <[email protected]> | 2018-12-26 16:51:27 +0000 |
---|---|---|
committer | gfreezy <[email protected]> | 2018-12-26 16:51:27 +0000 |
commit | cd60998b9baa891b063fb3fa9e722922bc1d8fc3 (patch) | |
tree | ef52b8ddab2fbab066c152328fd4ddd9054e1dcc /crates/tools/src/lib.rs | |
parent | 16996e9947917d9a4d804170f362a5f1b39ca48e (diff) |
fix use std::{self}
Diffstat (limited to 'crates/tools/src/lib.rs')
-rw-r--r-- | crates/tools/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs index 2795afe0b..6f96b8120 100644 --- a/crates/tools/src/lib.rs +++ b/crates/tools/src/lib.rs | |||
@@ -29,7 +29,7 @@ pub fn collect_tests(s: &str) -> Vec<(usize, Test)> { | |||
29 | let prefix = "// "; | 29 | let prefix = "// "; |
30 | let comment_blocks = s | 30 | let comment_blocks = s |
31 | .lines() | 31 | .lines() |
32 | .map(str::trim_left) | 32 | .map(str::trim_start) |
33 | .enumerate() | 33 | .enumerate() |
34 | .group_by(|(_idx, line)| line.starts_with(prefix)); | 34 | .group_by(|(_idx, line)| line.starts_with(prefix)); |
35 | 35 | ||