diff options
author | DJMcNab <[email protected]> | 2018-12-21 22:44:31 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2018-12-21 22:44:31 +0000 |
commit | 1dffbe5c379894add3097c005a8b0e4c70173e4a (patch) | |
tree | 0d9fd0d5831921a2f950927910959275679c9165 /crates | |
parent | 4dbf71d33291ab9c6d83a06fa88f322d7078034c (diff) |
Remove TODO on self_hosting_parsing
This improving this code is not a good use of people-time, and this
might be the most performant approach nonwithstanding
an api for this use case being added to walkdir
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_syntax/tests/test.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/crates/ra_syntax/tests/test.rs b/crates/ra_syntax/tests/test.rs index 14ad836b5..4266864bd 100644 --- a/crates/ra_syntax/tests/test.rs +++ b/crates/ra_syntax/tests/test.rs | |||
@@ -65,14 +65,10 @@ fn self_hosting_parsing() { | |||
65 | for entry in walkdir::WalkDir::new(dir) | 65 | for entry in walkdir::WalkDir::new(dir) |
66 | .into_iter() | 66 | .into_iter() |
67 | .filter_entry(|entry| { | 67 | .filter_entry(|entry| { |
68 | !entry | 68 | !entry.path().components().any(|component| { |
69 | .path() | 69 | // Get all files which are not in the crates/ra_syntax/tests/data folder |
70 | .components() | 70 | component == Component::Normal(OsStr::new("data")) |
71 | // TODO: this more neatly | 71 | }) |
72 | .any(|component| { | ||
73 | // Get all files which are not in the crates/ra_syntax/tests/data folder | ||
74 | component == Component::Normal(OsStr::new("data")) | ||
75 | }) | ||
76 | }) | 72 | }) |
77 | .map(|e| e.unwrap()) | 73 | .map(|e| e.unwrap()) |
78 | .filter(|entry| { | 74 | .filter(|entry| { |