Skip to content

Commit

Permalink
clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
breqdev committed Nov 17, 2023
1 parent 2369b68 commit 2ec3214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems/aiie/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ impl Memory for AiieSoftSwitches {
if key != self.previous_key {
self.keypress_waiting = true;
}
self.previous_key = key.clone();
self.previous_key = key;

(self.keypress_waiting as u8) << 7 | key.unwrap_or(0)

Check warning on line 144 in src/systems/aiie/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/mod.rs#L136-L144

Added lines #L136 - L144 were not covered by tests
}
Expand Down Expand Up @@ -271,6 +271,7 @@ impl System for AiieSystem {
self.cpu.reset();
}

Check warning on line 272 in src/systems/aiie/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/mod.rs#L270-L272

Added lines #L270 - L272 were not covered by tests

#[allow(clippy::identity_op)]
fn render(&mut self, framebuffer: &mut [u8], config: WindowConfig) {
let flash_state = ((self.cpu.get_info().cycle_count / 500_000) & 0b1) == 0;

Check warning on line 276 in src/systems/aiie/mod.rs

View check run for this annotation

Codecov / codecov/patch

src/systems/aiie/mod.rs#L275-L276

Added lines #L275 - L276 were not covered by tests

Expand Down

0 comments on commit 2ec3214

Please sign in to comment.