watch.rs: pass the guards to open() by shared reference (main's Clippy step fails on it) #241
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!241
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-241"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@sharan104 on GitHub · 2026-11-26 12:27 UTC · original
sharan104:fix/clippy-main-watch→main· +1 −1 · 1 files · 1 commits · openCI on
main(a9400a6) fails Clippy with-D warningsinvictory-gpu:open()takes&Guards, andtitle_memory_remappedpassed the write guard as&mut. Now it passes&. The write lock is still taken and held for the call, as before. Only the borrow handed toopen()changes.With this,
cargo clippy --workspace --all-targets --locked -- -D warnings(with and without--all-features, run with--keep-goingso later crates are linted too) is left with one failure: the twotransmuteannotations invictory-loader/src/descriptor_sites.rs:277. #169 already fixes those, so this PR leaves them alone. With both merged, the Clippy steps pass.🤖 Generated with Claude Code
@lerapeurdu62280-debug on GitHub · 2026-11-26 14:16 UTC · original · approved these changes
Trivial and correct: open() only needs a shared reference, and this clears main's clippy::unnecessary_mut_passed. Should go in with #169.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.