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.

cargo fmt

Piotr Osiewicz3e3079b51369
diff --git a/crates/collab_ui/src/collab_ui.rs b/crates/collab_ui/src/collab_ui.rs
index 9a426b0879f..d6e62d146ff 100644
--- a/crates/collab_ui/src/collab_ui.rs
+++ b/crates/collab_ui/src/collab_ui.rs
@@ -59,9 +59,7 @@ pub fn toggle_mute(_: &ToggleMute, cx: &mut AppContext) {
pub fn toggle_deafen(_: &ToggleDeafen, cx: &mut AppContext) {
if let Some(room) = ActiveCall::global(cx).read(cx).room().cloned() {
- let toggle_deafan = room.update(cx, |room, cx| {
- room.toggle_deafen(cx)
- });
+ let toggle_deafan = room.update(cx, |room, cx| room.toggle_deafen(cx));
toggle_deafan.detach_and_log_err(cx);
}
}