mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
fmt
This commit is contained in:
parent
28ba27c9c5
commit
0ac7a3bc21
@ -709,7 +709,11 @@ impl FakeFs {
|
||||
queue.push_back((path.join(name), entry.clone()));
|
||||
}
|
||||
}
|
||||
if include_dot_git || !path.components().any(|component| component.as_os_str() == *FS_DOT_GIT) {
|
||||
if include_dot_git
|
||||
|| !path
|
||||
.components()
|
||||
.any(|component| component.as_os_str() == *FS_DOT_GIT)
|
||||
{
|
||||
result.push(path);
|
||||
}
|
||||
}
|
||||
@ -725,7 +729,11 @@ impl FakeFs {
|
||||
for (name, entry) in entries {
|
||||
queue.push_back((path.join(name), entry.clone()));
|
||||
}
|
||||
if include_dot_git || !path.components().any(|component| component.as_os_str() == *FS_DOT_GIT) {
|
||||
if include_dot_git
|
||||
|| !path
|
||||
.components()
|
||||
.any(|component| component.as_os_str() == *FS_DOT_GIT)
|
||||
{
|
||||
result.push(path);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user