From 289acd00705f34acfab27374f74b7e27d5057870 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Mon, 16 Jan 2023 11:35:07 +1100 Subject: [PATCH] fix unused --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 83ee317..8dc46bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,10 +1,7 @@ #![feature(exclusive_range_pattern)] use clap::Parser; -use std::{ - fs, - io::{self, Read, Write}, -}; +use std::{fs, io}; /// Simple program to greet a person #[derive(Parser, Debug)] @@ -171,7 +168,7 @@ fn main() { let args = Args::parse(); let rom: ROM = fs::read(args.rom).expect("Could not load ROM"); - let bootrom: ROM = fs::read(args.bootrom).expect("Could not load BootROM"); + let _bootrom: ROM = fs::read(args.bootrom).expect("Could not load BootROM"); let mut cpu = CPU { memory: Memory::init(rom), state: State::default(),