From 3ebfcc0c2fb8901eb1f02e057ae9fdaa67079d75 Mon Sep 17 00:00:00 2001 From: Linghong Date: Thu, 10 Sep 2026 09:03:19 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=96=B0=E5=A2=9E=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E8=AF=BB=E5=8F=96=E5=9B=9E=E5=BD=92=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=9A=84=20Rust=20=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - tests/configuration.rs 按 cargo fmt 调整两个 assert! 宏换行 --- .../src-tauri/src/tests/configuration.rs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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 9636f7025..8b517b021 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 @@ -1200,11 +1200,9 @@ fn fallback_template_read_stays_on_snapshot_channel_outside_runtime_dir() { // 仓库旁边的回退模板是共享输入,读取绝不能走会收紧 owner/DACL 的私有通道。 assert!(!game_creator_config_path_is_runtime_managed(&template)); let content = read_game_creator_config_file(&template).expect("read fallback template"); - assert!( - content - .expect("fallback template content") - .contains("fallback-template-model") - ); + assert!(content + .expect("fallback template content") + .contains("fallback-template-model")); fs::remove_dir_all(root).ok(); } @@ -1222,11 +1220,9 @@ fn runtime_config_read_stays_on_private_channel_inside_runtime_dir() { assert!(game_creator_config_path_is_runtime_managed(&config_path)); let content = read_game_creator_config_file(&config_path).expect("read runtime config"); - assert!( - content - .expect("runtime config content") - .contains("managed-config-model") - ); + assert!(content + .expect("runtime config content") + .contains("managed-config-model")); fs::remove_dir_all(root).ok(); }