Repository navigation
fix(recall): keep clippy clean on Windows, where FileId is () - #5180
Merged
pszymkowiak merged 1 commit intoNov 19, 2026
Merged
Conversation
`before == Some(*id)` passes a unit value off unix, which -D warnings turns into a clippy::unit_arg error on Windows. Compare by reference instead; same comparison on every platform. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 19, 2026
pszymkowiak
approved these changes
Nov 19, 2026
pszymkowiak
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for catching this one. I reproduced it on native Windows (MSVC, rustc 1.100.0): cargo clippy --all-targets -- -D warnings fails on develop with the unit-arg error at retriever.rs:271, and passes with your change. Linux clippy is clean too, the retriever tests pass on both platforms, and a full cargo test --all on Windows gives the same results with and without the PR. Good to merge.
Merged
4 tasks done
yungSNAT
added a commit
to yungSNAT/PascalsLetter
that referenced
this pull request
Nov 24, 2026
* Merge pull request rtk-ai#4894 from KuSh/fix/schema-version-enum fix(db): version the tracking and recall schema migrations Ported from upstream rtk-ai/rtk 76be19c, with 24ff226 (rtk-ai#5180, clippy on Windows FileId). tracking.rs keeps the fork's seen_by_agent cap helpers; retriever.rs keeps a test-only open_existing for the tee and posthook tests. Co-authored-by: Nicolas Le Cam <[email protected]> Co-authored-by: LeviReisJs <[email protected]> * test(db): databases from the fork's last release migrate, and a failed step leaves them usable * fix(db): build against the fork's rusqlite 0.41 (MAIN_DB, busy_handler takes &mut) * style(db): rustfmt * test(db): a failed recall step and a step failing at its last statement leave the release's files usable --------- Co-authored-by: Nicolas Le Cam <[email protected]> Co-authored-by: LeviReisJs <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On Windows,
cargo clippy --all-targets -- -D warningsfails on a cleandevelop(3ab08be):FileIdis(u64, u64)on unix but()elsewhere (the recall connection cache, added with 94aa52e), so off unixSome(*id)passes a unit value. CI runs clippy on Linux only, so it never shows there.before == Some(*id)becomesbefore.as_ref() == Some(id): the same comparison on both platforms (Option<&FileId>againstSome(&FileId)), with no unit value passed by value. No behaviour change.Test plan
cargo clippy --all-targets -- -D warningson Windows 11: failed with the error above before the change, clean after.cargo fmt --all -- --check,git diff --checkcargo test --no-fail-faston Windows 11: same result as the clean base (5015 passed; the same 2 pre-existing failures,core::stream::...invalid_utf8andfind_cmd::run_from_args_propagates_find_exit_status).FileIdis a tuple, for which both forms compile, so CI covers it.🤖 Generated with Claude Code