From 0dda4cd78e0873f1b664cd84d88122f48353d9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 2 Oct 2026 14:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=20to=5Fstring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - editor_execute/error.rs EditorRejected 直接 clone 已拥有的 cause --- .../src-tauri/src/agent/tool/editor_execute/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs index 55e0f0138..97f70b437 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs @@ -104,7 +104,7 @@ impl ToolFailure for EditorExecuteError { got_bytes, max_bytes, } => format!("code 有 {got_bytes} 字节,超过上限 {max_bytes} 字节。"), - Self::EditorRejected { cause } => cause.to_string(), + Self::EditorRejected { cause } => cause.clone(), Self::ExecutionNotCompleted { editor, report } => { format!("{} 执行未完成:{report}", editor.label()) }