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
This commit is contained in:
parent
4dbf71d332
commit
1dffbe5c37
@ -65,14 +65,10 @@ fn self_hosting_parsing() {
|
||||
for entry in walkdir::WalkDir::new(dir)
|
||||
.into_iter()
|
||||
.filter_entry(|entry| {
|
||||
!entry
|
||||
.path()
|
||||
.components()
|
||||
// TODO: this more neatly
|
||||
.any(|component| {
|
||||
// Get all files which are not in the crates/ra_syntax/tests/data folder
|
||||
component == Component::Normal(OsStr::new("data"))
|
||||
})
|
||||
!entry.path().components().any(|component| {
|
||||
// Get all files which are not in the crates/ra_syntax/tests/data folder
|
||||
component == Component::Normal(OsStr::new("data"))
|
||||
})
|
||||
})
|
||||
.map(|e| e.unwrap())
|
||||
.filter(|entry| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user