Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove unwrap from `Server::share_project`

Antonio Scandurra3b34d858b5b5
diff --git a/crates/collab/src/rpc.rs b/crates/collab/src/rpc.rs
index 45330ca8583..70419623ef1 100644
--- a/crates/collab/src/rpc.rs
+++ b/crates/collab/src/rpc.rs
@@ -862,8 +862,7 @@ impl Server {
request.sender_connection_id,
&request.payload.worktrees,
)
- .await
- .unwrap();
+ .await?;
response.send(proto::ShareProjectResponse {
project_id: project_id.to_proto(),
})?;