From 8a1540c9e9e5dfc3fc25ca190569a147a85df036 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 21 Mar 2021 19:56:38 -0500 Subject: [PATCH] fix: replaced unnecessary &mut self with &self --- src/cpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.rs b/src/cpu.rs index ac20718..b0a2344 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -97,7 +97,7 @@ impl Cpu { self.bus.read_word(addr) } - pub fn read_byte(&mut self, addr: u16) -> u8 { + pub fn read_byte(&self, addr: u16) -> u8 { self.bus.read_byte(addr) }