fix: replaced unnecessary &mut self with &self
This commit is contained in:
parent
dc45688e4f
commit
8a1540c9e9
|
@ -97,7 +97,7 @@ impl Cpu {
|
||||||
self.bus.read_word(addr)
|
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)
|
self.bus.read_byte(addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue