style: cargo fmt --all(合并期整合修复)
Guards / 依赖许可与来源(cargo-deny) (push) Canceled after 0s
Guards / 文件行数 ≤400 守门 (push) Canceled after 0s
Guards / unsafe 落点守门(集合必须恰好一个文件) (push) Canceled after 0s
Guards / design 零第三方依赖守门 (push) Canceled after 0s
Guards / presenter 零 UI 守门 (push) Canceled after 0s
Guards / core 零 UI 守门 (push) Canceled after 0s
Dev Guards / 架构与合规守门(同 main 口径) (push) Canceled after 0s
Dev Guards / fmt (rustfmt --check) (push) Canceled after 0s
Dev Guards / clippy (ubuntu) (push) Canceled after 0s

M187/M188 并入后全仓 fmt --check 为红(CI 的 fmt job 会红)。
本次仅 cargo fmt --all 的换行/缩进变化,无语义改动;
cargo fmt --check 与 cargo check 均已复验为绿。
This commit is contained in:
AskaEth committed 2026-11-09 01:43:31 +08:00
1 parent edd12b38ab
commit 44a0c87a11
7 files changed
+33 -15

No files matched your search

+1 -4
View File
@@ -241,10 +241,7 @@ fn find_entry(ctx: &Ctx, key: &str) -> Result<SessionIndexEntry, CliError> {
fn event_path(ctx: &Ctx, entry: &SessionIndexEntry) -> std::path::PathBuf {
// M188:新会话在 `logs/game/`,旧会话在 `data/agent/sessions/game/`(只读兼容)。
// 先看新根,再回落旧家;两处都没有就把新根路径交出去(错误信息据此说「该去哪找」)。
let primary = ctx
.sessions_root()
.join(GAME_LOG_DIR)
.join(&entry.log_path);
let primary = ctx.sessions_root().join(GAME_LOG_DIR).join(&entry.log_path);
if primary.is_file() {
return primary;
}