diff options
| Commit | 023a7b9682e1e8ccd66ad68593051e1e3cae465e (patch) | |
|---|---|---|
| Author | 2025-02-15 11:08:27 +0200 | |
| Committer | 2025-02-15 11:08:27 +0200 | |
| Files | bbe8db12d04f4e2db7d4809fb5af2e4717a91853 /assembler/src/parser | |
| tonkobali-023a7b9682e1e8ccd66ad68593051e1e3cae465e.tar tonkobali-023a7b9682e1e8ccd66ad68593051e1e3cae465e.tar.gz tonkobali-023a7b9682e1e8ccd66ad68593051e1e3cae465e.zip | ||
| Parent | 4f531b88c55405ba644ae73734a6719453f0bb90 (diff) | |
fix: Handle warnings
2 files changed, 3 insertions, 7 deletions
| -rw-r--r-- | assembler/src/parser/instruction.rs | 4 | ||||
| -rw-r--r-- | assembler/src/parser/mod.rs | 6 |
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)] |
