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.

Rename IIFE to maybe (#3165)

Mikayla Makif67f42779ba8
diff --cc crates/collab_ui/src/collab_panel.rs
index 8d68ee12c08,69ba9859686..a0b87e64769
--- a/crates/collab_ui/src/collab_panel.rs
+++ b/crates/collab_ui/src/collab_panel.rs
@@@ -1937,11 -1925,11 +1937,11 @@@ impl CollabPanel
.channel_for_id(channel_id)
.map(|channel| channel.visibility)
== Some(proto::ChannelVisibility::Public);
- let other_selected =
- self.selected_channel().map(|channel| channel.0.id) == Some(channel.id);
- let disclosed = has_children.then(|| !self.collapsed_channels.binary_search(&path).is_ok());
+ let other_selected = self.selected_channel().map(|channel| channel.id) == Some(channel.id);
+ let disclosed =
+ has_children.then(|| !self.collapsed_channels.binary_search(&channel.id).is_ok());
- let is_active = iife!({
+ let is_active = maybe!({
let call_channel = ActiveCall::global(cx)
.read(cx)
.room()?