Skip to content

fix: clippy lints 1.99.1 - #3013

Merged
sylvestre merged 9 commits into
mainfrom
bs-clippy-and-ci
Nov 9, 2026
Merged

sylvestre merged 9 commits into
mainfrom
bs-clippy-and-ci

Conversation

@drahnr

@drahnr drahnr commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Fix clippy findings, and bump codspeed. This resolves the issues observed in #1742

Prequel to #3009 and #2995 and #3012

Copilot AI balanced review requested due to automatic review settings November 9, 2026 08:31
@codecov-commenter

codecov-commenter commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 5.88235% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.20%. Comparing base (dcdb2b1) to head (4487c6d).

Files with missing lines Patch % Lines
src/bin/sccache-dist/build.rs 0.00% 16 Missing ⚠️
src/dist/http.rs 0.00% 5 Missing ⚠️
src/bin/sccache-dist/main.rs 0.00% 4 Missing ⚠️
tests/harness/mod.rs 0.00% 4 Missing ⚠️
src/bin/sccache-dist/token_check.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3013      +/-   ##
==========================================
- Coverage   78.80%   76.20%   -2.61%     
==========================================
  Files          75       75              
  Lines       45355    45314      -41     
==========================================
- Hits        35743    34530    -1213     
- Misses       9612    10784    +1172     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The lint cleanups and benchmark workflow update have no active review issues blocking approval.

No open issues 🎉

What changed in this PR

Updates sccache’s distributed compilation code and test helpers to address Clippy warnings, and upgrades the benchmark workflow to CodSpeed v5.

Changes:

  • Applies lint-driven syntax and API cleanups across distributed compilation code and tests.
  • Removes the from_iter_instead_of_collect lint setting.
  • Upgrades the CodSpeed action to v5 and stops suppressing benchmark stdout.
File Description
tests/​harness/​mod.rs Cleans up server startup handling, lint annotations, and semicolons.
src/​test/​utils.rs Uses bracket syntax for vector macros.
src/​dist/​http.rs Simplifies certificate checks and adds semicolons.
src/​config.rs Adds a semicolon in a configuration test.
src/​bin/​sccache-dist/​token_check.rs Combines nested authentication-cache checks.
src/​bin/​sccache-dist/​main.rs Cleans up scheduler statement syntax.
src/​bin/​sccache-dist/​cmdline/​parse.rs Uses explicit string cloning and adds a test semicolon.
src/​bin/​sccache-dist/​build.rs Simplifies sorting, formatting, conditionals, and statement syntax.
Cargo.toml Removes the from_iter_instead_of_collect lint setting.
.github/​workflows/​benchmarks.yml Upgrades CodSpeed to v5 and preserves benchmark stdout.

Review effort: Balanced

@codspeed

codspeed Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Hooray! CodSpeed harness just leveled up!

The base and head of this comparison were measured with different runner settings, so their benchmark values are not directly comparable.

What changed between base and head:

Re-run the base with the same settings to get a valid performance comparison.


Comparing bs-clippy-and-ci (6a668d8) with main (59f4c83)

Open in CodSpeed

@drahnr
drahnr requested a review from sylvestre November 9, 2026 08:46
Comment thread Cargo.toml Resolved
Comment thread tests/harness/mod.rs Resolved
Comment thread tests/harness/mod.rs Resolved
@drahnr drahnr changed the title chore: clippy and codspeed gha to v5 fix: clippy lints 1.99.1 Nov 9, 2026
@drahnr
drahnr requested a review from sylvestre November 9, 2026 10:25
@sylvestre
sylvestre merged commit 33d12fb into main Nov 9, 2026
51 checks passed
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.

4 participants