From 0ac7a3bc21ea8a27db3eab10830c1f44ea9e37f6 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 7 Jun 2023 14:13:57 -0700 Subject: [PATCH] fmt --- crates/fs/src/fs.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/fs/src/fs.rs b/crates/fs/src/fs.rs index 60e0a14461..2e0a03dbeb 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); } }