diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/design_tools.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/design_tools.rs index 954793b1a..5221030b1 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/design_tools.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/design_tools.rs @@ -335,7 +335,7 @@ pub(crate) fn execute_design_file_tool( let end = start + old.len(); if let Some((other_index, _other_start, _other_end)) = matches .iter() - .find(|(_, other_start, other_end)| start < *_other_end && *_other_start < end) + .find(|(_, other_start, other_end)| start < *other_end && *other_start < end) { return Err(format!( "edits[{index}] 与 edits[{other_index}] 修改范围重叠:{display}"