From 023a7b9682e1e8ccd66ad68593051e1e3cae465e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 15 Feb 2025 11:08:27 +0200 Subject: fix: Handle warnings --- assembler/src/parser/instruction.rs | 4 +--- assembler/src/parser/mod.rs | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'assembler/src/parser') diff --git a/assembler/src/parser/instruction.rs b/assembler/src/parser/instruction.rs index 2d6b9ec..3c9af0d 100644 --- a/assembler/src/parser/instruction.rs +++ b/assembler/src/parser/instruction.rs @@ -1,4 +1,4 @@ -use super::{ Instruction, Address, Word }; +use super::{ Instruction, Address }; static Z: Address = Address::Memory(0); static E: Address = Address::Memory(1); @@ -11,8 +11,6 @@ pub(crate) enum ArgumentError { TooMany, TooFew, NotLocation, - NotNumber, - NotString, } impl Instruction { diff --git a/assembler/src/parser/mod.rs b/assembler/src/parser/mod.rs index f22fc36..0138243 100644 --- a/assembler/src/parser/mod.rs +++ b/assembler/src/parser/mod.rs @@ -1,12 +1,10 @@ +#![allow(dead_code)] mod code_gen; mod syntax; mod semantic; mod instruction; -use std::{ - collections::HashMap, - fmt::{ Display, Formatter, Result }, -}; +use std::collections::HashMap; use crate::Word; #[derive(Debug, Default)] -- cgit v1.3.1-23-gd82d