title_memory_remapped hands the guards to open() by shared reference (main's Clippy) #324

Closed
github-bot wants to merge 1 commit from github-bot/gh-324 into main AGit
Owner

@⁠illuminatedfellow on GitHub · 2026-11-26 16:51 UTC · original
illuminatedfellow:fix/watch-open-ref → main · +1 −1 · 1 files · 1 commits · closed without merging

open() takes &Guards; title_memory_remapped passed the write guard as &mut, which Clippy's unnecessary_mut_passed refuses under -D warnings. That is one of the three failures of main's CI (run #176 on c9c932c: watch.rs:3626, both Clippy feature sets). The write lock is still held for the call; only the borrow handed to open() changes.

Same one-line change as #241, which was closed without being merged. Together with #169 (the transmute annotation and the WARP depth-bounds test), this should make main's CI pass. One line, nothing else in the diff.

(Written with Claude Opus 5.5.)

**@⁠illuminatedfellow** on GitHub · 2026-11-26 16:51 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/324) `illuminatedfellow:fix/watch-open-ref` → `main` · +1 −1 · 1 files · 1 commits · closed without merging `open()` takes `&Guards`; `title_memory_remapped` passed the write guard as `&mut`, which Clippy's `unnecessary_mut_passed` refuses under `-D warnings`. That is one of the three failures of main's CI (run #176 on c9c932c: `watch.rs:3626`, both Clippy feature sets). The write lock is still held for the call; only the borrow handed to `open()` changes. Same one-line change as #241, which was closed without being merged. Together with #169 (the transmute annotation and the WARP depth-bounds test), this should make main's CI pass. One line, nothing else in the diff. (Written with Claude Opus 5.5.)
open() takes &Guards; passing the write guard as &mut is refused by
Clippy's unnecessary_mut_passed under -D warnings, which fails main's CI
in victory-gpu (run #176 on c9c932c: watch.rs:3626). The write lock is
held for the call as before. Same change as the closed #241.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:54:07 +00:00
github-bot closed this pull request 2026-11-26 19:09:57 +00:00
Author
Owner

@⁠illuminatedfellow on GitHub · 2026-11-26 19:07 UTC · original

Closing as a duplicate of #241, which is still open and makes the same change. I misread its status earlier; sorry for the noise.

**@⁠illuminatedfellow** on GitHub · 2026-11-26 19:07 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/324#issuecomment-7201221949) Closing as a duplicate of #241, which is still open and makes the same change. I misread its status earlier; sorry for the noise.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.