Skip to content

Upgrade to Rust 1.93#1533

Merged
akoshelev merged 7 commits intoprivate-attribution:mainfrom
akoshelev:clippy-fixes
Feb 17, 2026
Merged

Upgrade to Rust 1.93#1533
akoshelev merged 7 commits intoprivate-attribution:mainfrom
akoshelev:clippy-fixes

Conversation

@akoshelev
Copy link
Collaborator

Various clippy fixes

Remove unused `pin` import from `helpers/transport/receive.rs` and
`query/runner/reshard_tag.rs`.
Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

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

This all looks fine, but why isn't it building? (Why bother being the other question...)

Gate `OrderedStream` struct and its `Stream` impl behind
`#[cfg(all(test, ...))]` since it is only used in tests. Remove
unused `metrics::Request` struct from `http_serde.rs` and unused
`QueryType`/`Node` enums from `ipa_bench/models.rs`.
Provide descriptive reasons for `#[ignore]` tests, satisfying
`clippy::ignore_without_reason`.
Add backticks around code references in doc comments to satisfy
`clippy::doc_markdown`.
@akoshelev
Copy link
Collaborator Author

This all looks fine, but why isn't it building? (Why bother being the other question...)

nostalgic notes and want to keep this code alive just in case if I need to borrow any ideas from it

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

❌ Patch coverage is 65.38462% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.74%. Comparing base (370b36c) to head (e930814).
⚠️ Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
ipa-core/src/cli/metric_collector.rs 50.00% 7 Missing ⚠️
ipa-core/src/bin/helper.rs 0.00% 1 Missing ⚠️
ipa-core/src/cli/config_parse.rs 66.66% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (65.38%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1533      +/-   ##
==========================================
- Coverage   91.88%   91.74%   -0.14%     
==========================================
  Files         220      214       -6     
  Lines       38464    33929    -4535     
==========================================
- Hits        35343    31129    -4214     
+ Misses       3121     2800     -321     

☔ View full report in Codecov by Sentry.
📢 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.

- Use `.clone()` instead of `.to_string()` on `String` derefs
  (`clippy::implicit_clone`)
- Replace `is_some()`/`unwrap()` with `if let Some`
  (`clippy::unnecessary_unwrap`)
- Remove needless `return` statements (`clippy::needless_return`)
- Derive `Default` instead of manual impl (`clippy::derivable_impls`)
- Use `std::slice::from_ref` instead of `&[x.clone()]`
  (`clippy::cloned_ref_to_slice_refs`)
akoshelev and others added 2 commits February 13, 2026 09:33
The metrics collector thread spawned by install_collector() was never
joined before process exit. CollectorHandle::drop() only logged a
warning if the thread was still running, but did not stop or join it.

When running tests with `-Z sanitizer=leak`, LSan's atexit handler races
against the still-running metrics thread. If LSan runs its leak check
before the thread processes the channel disconnect and terminates, it
sees the thread's live allocations as leaks and exits with code 23.

Fix by properly shutting down the metrics thread in Drop.
@akoshelev
Copy link
Collaborator Author

sorry, coverage, not today

@akoshelev akoshelev marked this pull request as ready for review February 14, 2026 05:25
@akoshelev akoshelev merged commit c36c1eb into private-attribution:main Feb 17, 2026
11 of 12 checks passed
@akoshelev akoshelev deleted the clippy-fixes branch February 17, 2026 17:19
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.

2 participants