fix(ci): promote_nested_standalone_dir 按平台门控消除 Unix 死代码告警

该函数的生产调用点仅在 Windows zip 解压路径(Unix 走 tar),
Linux/macOS 的 clippy -D warnings 报 dead_code 导致 CI 失败。
用 cfg(any(windows, test)) 门控:保留跨平台单元测试覆盖。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
晴天
2026-07-05 21:04:36 -07:00
parent 1927f327b6
commit bfc46841fa

View File

@@ -448,6 +448,8 @@ fn standalone_archive_ext() -> &'static str {
}
}
// 生产路径仅 Windowszip 解压调用Unix 走 tar。test 门控保留跨平台单元测试
#[cfg(any(target_os = "windows", test))]
fn promote_nested_standalone_dir(
install_dir: &std::path::Path,
node_bin: &str,