diff --git a/crates/workspace2/src/workspace2.rs b/crates/workspace2/src/workspace2.rs index 135a713661..a649a8696a 100644 --- a/crates/workspace2/src/workspace2.rs +++ b/crates/workspace2/src/workspace2.rs @@ -343,8 +343,8 @@ impl CallHandler for TestCallHandler { None } - fn hang_up(&self, cx: AsyncWindowContext) -> Result>> { - anyhow::bail!("TestCallHandler should not be hanging up") + fn hang_up(&self, cx: &mut AppContext) -> Task> { + Task::ready(Err(anyhow!("TestCallHandler should not be hanging up"))) } fn active_project(&self, cx: &AppContext) -> Option> {