From d57662b403262e13edd593333242d653b5c29499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pinheiro?= Date: Mon, 6 May 2024 12:28:10 +0100 Subject: [PATCH] solve clippy --- fpt-egui/src/main.rs | 6 ++---- fpt/src/lr35902.rs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/fpt-egui/src/main.rs b/fpt-egui/src/main.rs index c8e8cdd..44367b1 100644 --- a/fpt-egui/src/main.rs +++ b/fpt-egui/src/main.rs @@ -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; diff --git a/fpt/src/lr35902.rs b/fpt/src/lr35902.rs index 51883a4..6c743f2 100644 --- a/fpt/src/lr35902.rs +++ b/fpt/src/lr35902.rs @@ -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;