fix: replaced unnecessary &mut self with &self

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-03-21 19:56:38 -05:00
parent dc45688e4f
commit 8a1540c9e9
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}