Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Don't panic on missing mtime (#9513)
Conrad Irwinf738bfd70314
diff --git a/crates/project/src/project.rs b/crates/project/src/project.rsindex 429e8629a7a..5bb328136ea 100644--- a/crates/project/src/project.rs+++ b/crates/project/src/project.rs@@ -7747,10 +7747,13 @@ impl Project {}let buffer_id = BufferId::new(state.id)?;- let buffer = cx.new_model(|_| {- Buffer::from_proto(this.replica_id(), this.capability(), state, buffer_file)- .unwrap()- });+ let buffer = Buffer::from_proto(+ this.replica_id(),+ this.capability(),+ state,+ buffer_file,+ )?;+ let buffer = cx.new_model(|_| buffer);this.incomplete_remote_buffers.insert(buffer_id, Some(buffer));}