Skip to content

chore: fix clippy warnings - #682

Merged
m4tx merged 1 commit into
masterfrom
fix-clippy
Oct 1, 2026
Merged

m4tx merged 1 commit into
masterfrom
fix-clippy

Conversation

@m4tx

@m4tx m4tx commented Oct 1, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings October 1, 2026 16:06
@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) labels Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

🐰 Bencher Report

Projectcot
Branchfix-clippy
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
12.90 ms
(+21.49%)Baseline: 10.62 ms
18.96 ms
(68.01%)
json_api/json_api📈 view plot
🚷 view threshold
1.13 ms
(+10.73%)Baseline: 1.02 ms
1.35 ms
(83.98%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1.04 ms
(+8.41%)Baseline: 0.96 ms
1.25 ms
(83.39%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
1.01 ms
(+9.63%)Baseline: 0.92 ms
1.21 ms
(83.66%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
18.92 ms
(+12.22%)Baseline: 16.86 ms
22.04 ms
(85.84%)
🐰 View full continuous benchmarking report in Bencher

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.

Copilot review overview

🟢 Approval recommended

The changes are limited to equivalent test assertions and removal of an unnecessary lint expectation.

Review effort: Balanced
Findings: None

What changed in this PR

Updates test assertions to resolve Clippy warnings without changing tested behavior.

Changes:

  • Replace emptiness checks with explicit equality assertions.
  • Remove an obsolete clippy::float_cmp expectation.
File Description
cot/​tests/​form.rs Updates rendered-form assertion.
cot/​tests/​db_testing/​relations.rs Updates cascade result assertion.
cot/​tests/​db_testing/​query/​transactions.rs Updates rollback result assertion.
cot/​tests/​db_testing/​query/​order_by.rs Updates empty query assertion.
cot/​tests/​db_testing/​query/​like.rs Updates pattern-query assertions.
cot/​tests/​db_testing/​query.rs Updates filtering assertion.
cot/​src/​openapi.rs Updates empty route-parameter assertions.
cot/​src/​form/​fields/​select.rs Updates empty field-values assertion.
cot/​src/​form/​fields.rs Removes obsolete lint expectation.
cot/​src/​email.rs Updates empty recipient-list assertions.
cot/​src/​db/​fields/​chrono_wrapper.rs Updates empty weekday assertion.
cot/​src/​cli.rs Updates empty command-name assertion.
cot-cli/​tests/​migration_generator.rs Updates migration dependency assertions.
cot-cli/​src/​migration_generator.rs Updates generated collection assertions.
cot-cli/​src/​main.rs Updates empty argument assertions.
cot-cli/​src/​handlers.rs Updates completion-output assertion.

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

@m4tx
m4tx enabled auto-merge (squash) October 1, 2026 16:28
@m4tx
m4tx merged commit 3837ecd into master Oct 1, 2026
39 of 40 checks passed
@m4tx
m4tx deleted the fix-clippy branch October 1, 2026 16:49
@cotbot cotbot Bot mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-lib Crate: cot (main library crate)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants