Rename IIFE to maybe (#3165)

Too good of an idea to forget

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki 2023-10-25 17:09:12 +02:00 committed by GitHub
commit f67f42779b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 22 deletions

View file

@ -46,7 +46,7 @@ use serde_derive::{Deserialize, Serialize};
use settings::SettingsStore;
use std::{borrow::Cow, hash::Hash, mem, sync::Arc};
use theme::{components::ComponentExt, IconButton, Interactive};
use util::{iife, ResultExt, TryFutureExt};
use util::{maybe, ResultExt, TryFutureExt};
use workspace::{
dock::{DockPosition, Panel},
item::ItemHandle,
@ -1461,7 +1461,7 @@ impl CollabPanel {
let text = match section {
Section::ActiveCall => {
let channel_name = iife!({
let channel_name = maybe!({
let channel_id = ActiveCall::global(cx).read(cx).channel_id(cx)?;
let channel = self.channel_store.read(cx).channel_for_id(channel_id)?;
@ -1941,7 +1941,7 @@ impl CollabPanel {
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()?
@ -2791,7 +2791,7 @@ impl CollabPanel {
}
}
ListEntry::Channel { channel, .. } => {
let is_active = iife!({
let is_active = maybe!({
let call_channel = ActiveCall::global(cx)
.read(cx)
.room()?