Add a dedicated fmt job to .github/workflows/contracts-ci.yml that runs cargo fmt --all -- --check across all packages in the workspace. No caching needed. Run cargo fmt --all locally and commit changes before merging so the baseline is clean.
Acceptance criteria:
- A PR with unformatted Rust code in any contract fails the
fmt job
- The
fmt job completes in under 30 seconds
- Existing code passes the check on merge
Add a dedicated
fmtjob to.github/workflows/contracts-ci.ymlthat runscargo fmt --all -- --checkacross all packages in the workspace. No caching needed. Runcargo fmt --alllocally and commit changes before merging so the baseline is clean.Acceptance criteria:
fmtjobfmtjob completes in under 30 seconds