diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index f868ff9360e..009cbae8f3f 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -1738,7 +1738,7 @@ impl AgentPanel { Err(error) => { log::error!("failed to spawn agent panel terminal: {error:#}"); workspace - .update(cx, |workspace, cx| workspace.show_error(&error, cx)) + .update(cx, |workspace, cx| workspace.show_error(error, cx)) .log_err(); this.update(cx, |this, cx| { if this.pending_terminal_spawn == Some(terminal_id) { diff --git a/crates/git_ui/src/git_panel.rs b/crates/git_ui/src/git_panel.rs index 264c32d756d..98efe669ffd 100644 --- a/crates/git_ui/src/git_panel.rs +++ b/crates/git_ui/src/git_panel.rs @@ -82,6 +82,7 @@ use ui::{ use util::paths::PathStyle; use util::{ResultExt, TryFutureExt, markdown::MarkdownInlineCode, maybe, rel_path::RelPath}; use workspace::SERIALIZATION_THROTTLE_TIME; +use workspace::notifications::NotificationId; use workspace::{ Workspace, dock::{DockPosition, Panel, PanelEvent},