apply of clippy.
fixed missing imports and builds and tests as expected again
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user