From 6c26f3d0e4d0135e49f7073f8a0412f175df5abf Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Mon, 15 May 2023 09:48:27 -0700 Subject: [PATCH] Fixed formatting --- crates/project/src/worktree.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index cb00fc5c41..5216db76f6 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -187,10 +187,12 @@ impl RepositoryEntry { self.worktree_statuses .iter_from(&repo_path) .take_while(|(key, _)| key.starts_with(&repo_path)) - .map(|(path, status)| if path == &repo_path { - status - } else { - &GitFileStatus::Modified + .map(|(path, status)| { + if path == &repo_path { + status + } else { + &GitFileStatus::Modified + } }) .next() .copied() @@ -4162,8 +4164,6 @@ mod tests { tree.flush_fs_events(cx).await; - git_status(&repo); - // Check that non-repo behavior is tracked tree.read_with(cx, |tree, _cx| { let snapshot = tree.snapshot();