diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index 760ffa8c1a..3c5d1dfbf6 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -1248,14 +1248,8 @@ impl Workspace { state.active_view_id = response.active_view_id; Ok::<_, anyhow::Error>(()) })?; - Self::add_views_from_leader( - this, - leader_id, - vec![pane.clone()], - response.views, - &mut cx, - ) - .await?; + Self::add_views_from_leader(this, leader_id, vec![pane], response.views, &mut cx) + .await?; } Ok(()) }))