diff --git a/apps/ai-game-creator-shell/src-tauri/src/config.rs b/apps/ai-game-creator-shell/src-tauri/src/config.rs index 8f586dbde..c03fba4e4 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/config.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/config.rs @@ -3708,7 +3708,10 @@ pub(crate) fn write_game_creator_config_batch(writes: &[(PathBuf, String)]) -> R .map_err(|error| error.to_string()), }; if let Err(restore_error) = restored { - error.push_str(&format!(";恢复配置失败:{}: {restore_error}", path.display())); + error.push_str(&format!( + ";恢复配置失败:{}: {restore_error}", + path.display() + )); } } return Err(error); diff --git a/apps/ai-game-creator-shell/src-tauri/src/tests/configuration.rs b/apps/ai-game-creator-shell/src-tauri/src/tests/configuration.rs index 65e8520b4..e1e91b5fd 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/tests/configuration.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/tests/configuration.rs @@ -832,7 +832,10 @@ fn app_config_batch_restores_main_when_overlay_write_fails() { } else { assert!(!main.exists()); } - assert_eq!(fs::read_to_string(&overlay).expect("unchanged overlay"), original); + assert_eq!( + fs::read_to_string(&overlay).expect("unchanged overlay"), + original + ); fs::remove_dir_all(root).expect("cleanup config dir"); } }