chore: fix clippy warnings and update docs to match public API
Some checks failed
CI / rust (push) Has been cancelled

Fix 9 clippy warnings across mmc5 mapper and desktop frontend.
Sync api_contract.md and architecture.md with actual public surface.
This commit is contained in:
2026-03-16 15:05:02 +03:00
parent 188444f987
commit 2878187180
4 changed files with 52 additions and 33 deletions

View File

@@ -530,11 +530,11 @@ impl Mapper for Mmc5 {
cursor += 2;
}
}
if cursor + 1 <= data.len() {
if cursor < data.len() {
self.irq_scanline_counter = data[cursor];
cursor += 1;
}
if cursor + 1 <= data.len() {
if cursor < data.len() {
self.sprite_8x16 = data[cursor] != 0;
cursor += 1;
}