watch.rs: pass the guards to open() by shared reference (main's Clippy step fails on it) #241
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by sharan104 on 2026-11-26T12:27:26Z.
CI 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
Imported from avatarmanz/VIctory-7900XTX. Originally posted by lerapeurdu62280-debug on 2026-11-26T14:16:02Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.