Merge pull request #2091 from zed-industries/style

Style
This commit is contained in:
Julia 2023-01-25 15:22:52 -05:00 committed by GitHub
commit 2df2d09e3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(())
}
}