Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
imagine-hussain committed Apr 30, 2024
1 parent 2a9e9b4 commit be66916
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/cartridge/cartridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl TryFrom<&[u8]> for Cartridge {
// Trainer
let bytestream = match has_trainer {
true => &bytestream[512..],
false => &bytestream[..],
false => bytestream,
};
log_read_progress("Trainer", bytestream, cartridge_size);

Expand Down
2 changes: 1 addition & 1 deletion src/lib/cpu/addressing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl AddressingMode {
}
}

pub(self) mod fetching {
mod fetching {
use crate::Cpu;

pub(super) fn fetch_imp(cpu: &mut Cpu) -> u8 {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/opcodes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod opcode;
mod opcode_from_u8;
mod opcode_types;

pub(self) mod operations;
mod operations;
pub use opcode::OpCode;
pub use opcode_types::OpCodeType;

2 changes: 1 addition & 1 deletion src/lib/ppu.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use pixels::Pixels;


use crate::{Cartridge, RcCell, Reset};

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{cell::RefCell, rc::Rc};

use env_logger::Env;
use lib::{egui::Gui, Cartridge, Nes};
use log::{debug, error, info, trace, warn};
use log::{info};

pub fn main() {
let mut app = Gui::new(Nes::default());
Expand Down

0 comments on commit be66916

Please sign in to comment.