mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-07-14 00:43:19 +08:00
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:
@@ -448,6 +448,8 @@ fn standalone_archive_ext() -> &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
// 生产路径仅 Windows(zip 解压)调用;Unix 走 tar。test 门控保留跨平台单元测试
|
||||
#[cfg(any(target_os = "windows", test))]
|
||||
fn promote_nested_standalone_dir(
|
||||
install_dir: &std::path::Path,
|
||||
node_bin: &str,
|
||||
|
||||
Reference in New Issue
Block a user