Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Avoid unwrap of Worktree::root_entry in resolve_path_in_worktrees (#16917)
Max Brunsfeldf417893a7b46
diff --git a/crates/project/src/project.rs b/crates/project/src/project.rsindex 24fa4e3ba8b..b12029ba40f 100644--- a/crates/project/src/project.rs+++ b/crates/project/src/project.rs@@ -7706,7 +7706,7 @@ impl Project {for candidate in candidates.iter() {let path = worktree.update(&mut cx, |worktree, _| {- let root_entry_path = &worktree.root_entry().unwrap().path;+ let root_entry_path = &worktree.root_entry()?.path;let resolved = resolve_path(&root_entry_path, candidate);