mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
Fixed formatting
This commit is contained in:
parent
2b18975cdc
commit
6c26f3d0e4
1 changed files with 6 additions and 6 deletions
|
@ -187,10 +187,12 @@ impl RepositoryEntry {
|
||||||
self.worktree_statuses
|
self.worktree_statuses
|
||||||
.iter_from(&repo_path)
|
.iter_from(&repo_path)
|
||||||
.take_while(|(key, _)| key.starts_with(&repo_path))
|
.take_while(|(key, _)| key.starts_with(&repo_path))
|
||||||
.map(|(path, status)| if path == &repo_path {
|
.map(|(path, status)| {
|
||||||
status
|
if path == &repo_path {
|
||||||
} else {
|
status
|
||||||
&GitFileStatus::Modified
|
} else {
|
||||||
|
&GitFileStatus::Modified
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.next()
|
.next()
|
||||||
.copied()
|
.copied()
|
||||||
|
@ -4162,8 +4164,6 @@ mod tests {
|
||||||
|
|
||||||
tree.flush_fs_events(cx).await;
|
tree.flush_fs_events(cx).await;
|
||||||
|
|
||||||
git_status(&repo);
|
|
||||||
|
|
||||||
// Check that non-repo behavior is tracked
|
// Check that non-repo behavior is tracked
|
||||||
tree.read_with(cx, |tree, _cx| {
|
tree.read_with(cx, |tree, _cx| {
|
||||||
let snapshot = tree.snapshot();
|
let snapshot = tree.snapshot();
|
||||||
|
|
Loading…
Reference in a new issue