Fixed formatting

This commit is contained in:
Mikayla Maki 2023-05-15 09:48:27 -07:00
parent 2b18975cdc
commit 6c26f3d0e4
No known key found for this signature in database

View File

@ -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();