Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix a panic in the git store (#28590)
Cole Miller5909d1258b9e
diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rsindex 9a1683b3793..b0b35c52bcd 100644--- a/crates/project/src/git_store.rs+++ b/crates/project/src/git_store.rs@@ -4048,7 +4048,7 @@ impl Repository {for (repo_path, status) in &*statuses.entries {changed_paths.remove(repo_path);if cursor.seek_forward(&PathTarget::Path(repo_path), Bias::Left, &()) {- if &cursor.item().unwrap().status == status {+ if cursor.item().is_some_and(|entry| entry.status == *status) {continue;}}