Skip to content

Commit

Permalink
solve clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
pineman committed May 6, 2024
1 parent 622bc4c commit 909bc2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions fpt-egui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ use std::time::Duration;

use eframe::Frame;
use egui::{
menu, Align, CentralPanel, Color32, ColorImage, Context, DragValue, Grid, Layout, ScrollArea,
SidePanel, TextureHandle, TextureOptions, TopBottomPanel, Ui, Vec2, ViewportBuilder,
ViewportCommand,
menu, CentralPanel, Color32, ColorImage, Context, Grid, ScrollArea, SidePanel, TextureHandle,
TextureOptions, TopBottomPanel, Ui, Vec2, ViewportBuilder, ViewportCommand,
};
use fpt::lr35902::instructions::Instruction;
use fpt::ppu::tile::Tile;
use fpt::{bitwise, Gameboy};
use log::info;
Expand Down
2 changes: 1 addition & 1 deletion fpt/src/lr35902.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ impl LR35902 {
ret.push(self.decode());
// HACK: using the opcode field to store the pc
ret[0].opcode = self.pc();
if ret[0].mnemonic == "PREFIX CB" {}
// if ret[0].mnemonic == "PREFIX CB" {} // TODO
for i in 1..(n + 1) {
let last_inst = ret[i - 1];
let next_pc = last_inst.opcode + last_inst.size as u16;
Expand Down

0 comments on commit 909bc2e

Please sign in to comment.