Skip to content

chore: update Rust nightly, reformat - #668

Merged
m4tx merged 1 commit into
masterfrom
update-rust
Sep 3, 2026
Merged

m4tx merged 1 commit into
masterfrom
update-rust

Conversation

@m4tx

@m4tx m4tx commented Sep 3, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings September 3, 2026 16:29
@github-actions github-actions Bot added C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-lib Crate: cot (main library crate) C-macros Crate: cot-macros A-ci Area: CI (Continuous Integration) C-core labels Sep 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are non-functional formatting plus a routine CI nightly pin update, with only a minor comment-grammar nit identified.

Pull request overview

This PR updates the pinned Rust nightly toolchain used in CI and applies formatting-only changes (primarily comment reflow) across the Rust codebase to match updated rustfmt/style output.

Changes:

  • Bump CI’s pinned Rust nightly from nightly-2026-08-28 to nightly-2026-09-02.
  • Reformat/reflow comments across multiple crates/modules without changing runtime behavior.
File summaries
File Description
cot/tests/db_testing/migrations.rs Comment reflow only.
cot/src/test.rs Comment reflow only.
cot/src/session/store/db.rs Comment reflow only.
cot/src/router.rs Comment reflow only.
cot/src/project.rs Comment reflow only.
cot/src/openapi/swagger_ui.rs Comment reflow only.
cot/src/openapi.rs Comment reflow only.
cot/src/middleware.rs Comment reflow; exposes an existing small grammar typo.
cot/src/form.rs Comment reflow only.
cot/src/db/migrations.rs Comment reflow only.
cot/src/db/impl_mysql.rs Comment reflow only.
cot/src/db.rs Comment reflow only.
cot/src/config.rs Comment reflow only.
cot/src/auth/db.rs Comment reflow only.
cot/src/auth.rs Comment reflow only.
cot-test/tests/doc_code_blocks.rs Comment reflow only.
cot-test/src/lib.rs Comment reflow only.
cot-macros/src/form.rs Comment reflow only.
cot-core/src/error/error_impl.rs Comment reflow only.
cot-core/src/error/backtrace.rs Comment reflow only.
cot-cli/src/utils.rs Comment reflow only.
cot-cli/src/new_project.rs Comment reflow only.
cot-cli/src/migration_generator.rs Comment reflow only.
.github/workflows/rust.yml Updates pinned nightly toolchain date for CI stability.
Review details
  • Files reviewed: 24/24 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cot/src/middleware.rs
// The inner service may panic until ready, so it's important to clone
// it here and used the version that is ready. This is a common pattern when
// using `tower::Service`.
// it here and used the version that is ready. This is a common pattern
@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

Projectcot
Branchupdate-rust
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
14.28 ms
(+52.69%)Baseline: 9.35 ms
17.77 ms
(80.33%)
json_api/json_api📈 view plot
🚷 view threshold
1.12 ms
(+9.04%)Baseline: 1.03 ms
1.37 ms
(82.30%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1.05 ms
(+8.40%)Baseline: 0.97 ms
1.26 ms
(83.21%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
1.01 ms
(+8.55%)Baseline: 0.93 ms
1.22 ms
(82.68%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
17.64 ms
(+4.77%)Baseline: 16.84 ms
21.47 ms
(82.17%)
🐰 View full continuous benchmarking report in Bencher

@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
rust 90.12% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot-cli/src/migration_generator.rs 89.57% <ø> (ø)
cot-cli/src/new_project.rs 97.33% <ø> (ø)
cot-cli/src/utils.rs 94.01% <ø> (ø)
cot-core/src/error/backtrace.rs 97.60% <100.00%> (ø)
cot-core/src/error/error_impl.rs 96.29% <ø> (ø)
cot-macros/src/form.rs 96.77% <ø> (ø)
cot-test/src/lib.rs 76.76% <ø> (ø)
cot/src/auth.rs 91.05% <ø> (ø)
cot/src/auth/db.rs 82.71% <ø> (ø)
cot/src/config.rs 94.58% <ø> (ø)
... and 11 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@m4tx
m4tx merged commit 5926ec0 into master Sep 3, 2026
42 checks passed
@m4tx
m4tx deleted the update-rust branch September 3, 2026 17:09
@cotbot cotbot Bot mentioned this pull request Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci Area: CI (Continuous Integration) C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-core C-lib Crate: cot (main library crate) C-macros Crate: cot-macros

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants