fix(rust): format output.rs chain for stable rustfmt by duyet · Pull Request #3238 · chmonitor/chmonitor · GitHub
Skip to content

fix(rust): format output.rs chain for stable rustfmt - #3238

Merged
duyet merged 2 commits into
mainfrom
fix/rust-fmt-output-rs
Aug 23, 2026
Merged

fix(rust): format output.rs chain for stable rustfmt#3238
duyet merged 2 commits into
mainfrom
fix/rust-fmt-output-rs

Conversation

@duyet

@duyet duyet commented Aug 23, 2026

Copy link
Copy Markdown
Member

Follow-up: stable rustfmt (1.98) splits the single-line .min().max() chain in ch-monitor-cli/src/output.rs into multiple lines; the previous form fails cargo fmt --all -- --check on CI runners. Closes #3223.

duyetbot and others added 2 commits August 23, 2026 11:29
The workspace-wide `cargo clippy --all-targets` added by the Rust CI
coverage (cli-rust-ci.yml) surfaces `clippy::items_after_test_module`
in ch-monitor-cli/src/output.rs: the success/warn/info fns were
defined after `mod tests`. Move them before the test module so the
new coverage job passes on main.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: duyetbot <bot@duyet.net>
Follow-up to #3234: stable rustfmt (1.98 in CI) reformats the
.min().max() chain in braile_sparkline across lines; the single-line
form fails cargo fmt --all -- --check on main.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: duyetbot <bot@duyet.net>
@github-actions github-actions Bot added the area: rust Rust monitor-core / WASM label Aug 23, 2026
@duyet
duyet enabled auto-merge (squash) August 23, 2026 04:51
@github-actions

Copy link
Copy Markdown
Contributor

@duyet
duyet merged commit 4e81bb5 into main Aug 23, 2026
21 of 23 checks passed
@duyet
duyet deleted the fix/rust-fmt-output-rs branch August 23, 2026 04:52
@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

duyet added a commit that referenced this pull request Aug 23, 2026
ci-rust-ci.yml: squash merge of #3238 collapsed to base (single-line)
despite the PR HEAD containing the multi-line split. Re-apply the
correct formatting so cargo fmt --all -- --check passes on stable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: rust Rust monitor-core / WASM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[audit] 4 of 5 rust workspace crates (incl. crates.io-published ones) have no CI test/lint coverage P2

2 participants