diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rs index 16ddf73e9c5df8b0f09f931658f7d7c738cc3ddb..78f1283922f5f86bfd1c099f594661f6aa6695ab 100644 --- a/crates/project/src/git_store.rs +++ b/crates/project/src/git_store.rs @@ -3857,7 +3857,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; } }