apply of clippy.

fixed missing imports and builds and tests as expected again
This commit is contained in:
2024-10-30 09:48:59 -04:00
parent 4fb2d6af29
commit 011874bca6
20 changed files with 114 additions and 154 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
use std::fs::File;
use std::io;
use std::io::{BufReader, Read};
use clap::{Arg, Command, ArgAction, ValueEnum};
use clap::{Arg, Command};
#[derive(Debug)]
struct CliArgs {
+2 -3
View File
@@ -14,8 +14,6 @@ pub struct Chip8AsmParser;
fn main() {
println!("Taxation is Theft");
let unparsed = fs::read_to_string("resources/test/gemma_disassembler_1_chip_logo_ch8_asm.asc").expect("Unable to read input");
let file = Chip8AsmParser::parse(Rule::file, &unparsed).expect("Unable to parse. Try again.")
@@ -34,7 +32,8 @@ fn main() {
}
mod test {
use super::*;
use pest::Parser;
use crate::{Chip8AsmParser, Rule};
#[test]
fn bits_all_parse() {