From 8f07ff93794e9fac8937ac0b95f910558dc9c6b1 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?=E6=B5=8F=E8=A7=88=E5=99=A8=E8=AF=95=E7=8E=A9?= =?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 - browser_playtest/error.rs PlaytestFailed 直接 clone 已拥有的 cause --- .../src-tauri/src/agent/tool/browser_playtest/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs index 55291cfda..6c0c05a5d 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs @@ -24,7 +24,7 @@ pub(crate) enum BrowserPlaytestError { impl ToolFailure for BrowserPlaytestError { fn to_user_msg(&self) -> String { match self { - Self::PlaytestFailed { cause } => cause.to_string(), + Self::PlaytestFailed { cause } => cause.clone(), Self::PlaytestNotPassed { report, .. } => format!("浏览器试玩未通过:{report}"), } }