Skip to content

chore(ci): fix pre-existing fmt + clippy on main#20

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
chore/fix-ci-fmt-clippy
Jun 11, 2026
Merged

chore(ci): fix pre-existing fmt + clippy on main#20
ZhiXiao-Lin merged 2 commits into
mainfrom
chore/fix-ci-fmt-clippy

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

main's CI is red from pre-existing issues unrelated to any open feature PR — even the docs-only #17 fails them, in files no feature PR touched. This greens CI so the feature PRs (#15/#16/#18/#19) can merge clean.

  • Format (cargo fmt --all -- --check): drift in 6 files (cli/state/file.rs, core/log.rs, cri/service_ops.rs, runtime/oci/build/engine/handlers.rs, runtime/oci/layers.rs, shim/main.rs) — mechanical cargo fmt.
  • Clippy (-D warnings): manual char comparison in core/log.rs (→ char-array pattern ['\n','\r']) and items after a test module in cri/.../stats.rs (→ move the test module to the end).

No behavior change. Verified locally: cargo fmt --all -- --check clean, cargo clippy --workspace --all-targets -- -D warnings exit 0, a3s-box-core (400) + a3s-box-cri (237) unit tests pass.

Roy Lin added 2 commits June 11, 2026 16:16
main's CI was red from pre-existing issues unrelated to any open feature PR
(even the docs-only PR failed them): cargo fmt drift in 6 files, plus two clippy
-D warnings — manual char comparison in core/log.rs (use a char-array pattern)
and an items-after-test-module in cri stats.rs (move the test module to the end).
Greens `cargo fmt --all -- --check` and `cargo clippy --workspace --all-targets
-- -D warnings` so the feature PRs can merge clean. No behavior change.
macOS clippy skipped the Linux-target guest-init code; CI (x86_64-linux) caught
three more -D warnings: items-after-test-module in cgroup.rs (move test mod to
end) and two manual_contains in main.rs (iter().any() → contains()).
@ZhiXiao-Lin ZhiXiao-Lin merged commit 8775faf into main Jun 11, 2026
7 checks passed
@ZhiXiao-Lin ZhiXiao-Lin deleted the chore/fix-ci-fmt-clippy branch June 11, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant