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

Closed
illuminatedfellow wants to merge 1 commit from upstream-pr/324 into main
illuminatedfellow commented 2026-11-26 16:51:45 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by illuminatedfellow on 2026-11-26T16:51:45Z.


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.)

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5514008080 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/324). Originally posted by [illuminatedfellow](https://github.com/illuminatedfellow) on 2026-11-26T16:51:45Z. --- `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 commented 2026-11-26 19:07:33 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by illuminatedfellow on 2026-11-26T19:07:33Z.


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

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7201221949 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/324#issuecomment-7201221949). Originally posted by [illuminatedfellow](https://github.com/illuminatedfellow) on 2026-11-26T19:07:33Z. --- 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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
avatarmanz/VIctory-7900XTX!324
No description provided.