修复遗留 Rust 代码的 rustfmt 格式
Project CI / AI game creator shell Rust crates (pull_request) Successful in 5m51s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 7m4s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 7m6s
Project CI / Backend tests (pull_request) Successful in 8m49s
Project CI / Frontend tests (pull_request) Successful in 3m19s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m57s
Project CI / Repository checks (pull_request) Failing after 5m28s
Project CI / Native shell tests (pull_request) Successful in 6m57s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 5m51s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 7m4s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Successful in 7m6s
Project CI / Backend tests (pull_request) Successful in 8m49s
Project CI / Frontend tests (pull_request) Successful in 3m19s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m57s
Project CI / Repository checks (pull_request) Failing after 5m28s
Project CI / Native shell tests (pull_request) Successful in 6m57s
- xhs_minitool/build.rs:拆分超长的 conclude 调用断言行 - project/filesystem.rs:project_snapshot_path_is_excluded 的闭包改用 rustfmt 期望的换行
This commit is contained in:
@@ -256,7 +256,8 @@ mod tests {
|
||||
fn a_successful_script_without_the_artifact_is_reported_as_missing() {
|
||||
let root = fixture_root("no-artifact");
|
||||
|
||||
let error = conclude(&root, Some(0), false, true, "构建完成").expect_err("产物缺失必须失败");
|
||||
let error =
|
||||
conclude(&root, Some(0), false, true, "构建完成").expect_err("产物缺失必须失败");
|
||||
let XHSMiniToolExportBuildError::ArtifactMissing(missing) = error else {
|
||||
panic!("没有 zip 必须映射成 artifactMissing");
|
||||
};
|
||||
|
||||
@@ -539,9 +539,9 @@ fn project_snapshot_path_is_excluded(relative_path: &str, include_agent_state: b
|
||||
PROJECT_SNAPSHOT_EXCLUDED_COMPONENTS.contains(&component.as_str())
|
||||
&& !(include_agent_state && component == ".agent")
|
||||
}) || (include_agent_state
|
||||
&& components
|
||||
.first()
|
||||
.is_some_and(|component| PROJECT_DERIVED_EXCLUDED_COMPONENTS.contains(&component.as_str())))
|
||||
&& components.first().is_some_and(|component| {
|
||||
PROJECT_DERIVED_EXCLUDED_COMPONENTS.contains(&component.as_str())
|
||||
}))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user