chore: satisfy clippy
This commit is contained in:
parent
ce121864d2
commit
71ce3f43e0
|
@ -57,10 +57,7 @@ impl Cpu {
|
|||
}
|
||||
|
||||
pub(crate) fn is_halted(&self) -> bool {
|
||||
match self.state {
|
||||
State::Halt(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self.state, State::Halt(_))
|
||||
}
|
||||
|
||||
pub(crate) fn halt_kind(&self) -> Option<HaltKind> {
|
||||
|
|
|
@ -261,7 +261,7 @@ impl Ppu {
|
|||
TileLow => {
|
||||
let obj_size = self.ctrl.obj_size();
|
||||
|
||||
let addr = PixelFetcher::get_obj_addr(&attr, &self.pos, obj_size);
|
||||
let addr = PixelFetcher::get_obj_addr(attr, &self.pos, obj_size);
|
||||
|
||||
let byte = self.read_byte(addr);
|
||||
self.fetch.obj.tile.with_low_byte(byte);
|
||||
|
@ -272,7 +272,7 @@ impl Ppu {
|
|||
TileHigh => {
|
||||
let obj_size = self.ctrl.obj_size();
|
||||
|
||||
let addr = PixelFetcher::get_obj_addr(&attr, &self.pos, obj_size);
|
||||
let addr = PixelFetcher::get_obj_addr(attr, &self.pos, obj_size);
|
||||
|
||||
let byte = self.read_byte(addr + 1);
|
||||
self.fetch.obj.tile.with_high_byte(byte);
|
||||
|
|
Loading…
Reference in New Issue