diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rs index 53e2f1a10a4efe0c87985c06d737577901f46f71..9b6eb299d471016132ed2120396a755575b1d771 100644 --- a/crates/project/src/git_store.rs +++ b/crates/project/src/git_store.rs @@ -3975,7 +3975,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; } }