diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-27 09:10:17 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-12-27 09:10:17 +0000 |
commit | 11ae1a669c4dc9441905b6bb70cf79ead2a76f1c (patch) | |
tree | ef52b8ddab2fbab066c152328fd4ddd9054e1dcc /crates/tools/src | |
parent | 6bd92e66f1e8b828288516fb749b378087f9ab66 (diff) | |
parent | cd60998b9baa891b063fb3fa9e722922bc1d8fc3 (diff) |
Merge #334
334: use a::b::{self} should be fixed as use a::b instead of use a::b::self r=matklad a=gfreezy
Co-authored-by: gfreezy <[email protected]>
Diffstat (limited to 'crates/tools/src')
-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 | ||