fixup! Use AppContext instead of AsyncWindowContext to quit

This commit is contained in:
Piotr Osiewicz 2023-11-27 15:47:00 +01:00
parent 44876062c9
commit 30af3ffaf3

View file

@ -343,8 +343,8 @@ impl CallHandler for TestCallHandler {
None
}
fn hang_up(&self, cx: AsyncWindowContext) -> Result<Task<Result<()>>> {
anyhow::bail!("TestCallHandler should not be hanging up")
fn hang_up(&self, cx: &mut AppContext) -> Task<Result<()>> {
Task::ready(Err(anyhow!("TestCallHandler should not be hanging up")))
}
fn active_project(&self, cx: &AppContext) -> Option<WeakModel<Project>> {