Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Style
Juliaa79b4e312baa
diff --git a/crates/live_kit_client/src/prod.rs b/crates/live_kit_client/src/prod.rsindex 47fd4f0b69d..f45667e3c3e 100644--- a/crates/live_kit_client/src/prod.rs+++ b/crates/live_kit_client/src/prod.rs@@ -128,14 +128,9 @@ impl Room {let url = url.to_string();let token = token.to_string();async move {- match rx.await.unwrap().context("error connecting to room") {- Ok(()) => {- *this.connection.lock().0.borrow_mut() =- ConnectionState::Connected { url, token };- Ok(())- }- Err(err) => Err(err),- }+ rx.await.unwrap().context("error connecting to room")?;+ *this.connection.lock().0.borrow_mut() = ConnectionState::Connected { url, token };+ Ok(())}}