Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

fmt

Mikayla Maki0ac7a3bc21ea
diff --git a/crates/fs/src/fs.rs b/crates/fs/src/fs.rs
index 60e0a14461f..2e0a03dbeb0 100644
--- a/crates/fs/src/fs.rs
+++ b/crates/fs/src/fs.rs
@@ -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);
}
}