From 087760dba0d9d5962a14dae2f4bcab33d85100bb Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 5 Oct 2022 10:51:51 +0200 Subject: [PATCH] Use AppContext instead of MutableAppContext for ActiveCall::global --- crates/call/src/call.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/call/src/call.rs b/crates/call/src/call.rs index a861f94bd0..4a662e42e0 100644 --- a/crates/call/src/call.rs +++ b/crates/call/src/call.rs @@ -3,7 +3,7 @@ pub mod room; use anyhow::{anyhow, Result}; use client::{incoming_call::IncomingCall, Client, UserStore}; -use gpui::{Entity, ModelContext, ModelHandle, MutableAppContext, Subscription, Task}; +use gpui::{AppContext, Entity, ModelContext, ModelHandle, MutableAppContext, Subscription, Task}; pub use participant::ParticipantLocation; use project::Project; pub use room::Room; @@ -33,7 +33,7 @@ impl ActiveCall { } } - pub fn global(cx: &mut MutableAppContext) -> ModelHandle { + pub fn global(cx: &AppContext) -> ModelHandle { cx.global::>().clone() }