diff --git a/dist/.stage/favicon-bb479c4c9d076525.ico b/dist/.stage/favicon-bb479c4c9d076525.ico deleted file mode 100644 index 66ab34e..0000000 Binary files a/dist/.stage/favicon-bb479c4c9d076525.ico and /dev/null differ diff --git a/src/bin/topola-cli/main.rs b/src/bin/topola-cli/main.rs index 73efe54..346b4ae 100644 --- a/src/bin/topola-cli/main.rs +++ b/src/bin/topola-cli/main.rs @@ -1,7 +1,7 @@ +use clap::{Error, Parser}; use std::fs::File; -use std::io::BufReader; use std::io::prelude::*; -use clap::{Parser, Error}; +use std::io::BufReader; #[derive(Parser)] struct Cli { @@ -11,7 +11,6 @@ struct Cli { } fn main() -> Result<(), std::io::Error> { - let args = Cli::parse(); let design_file = File::open(args.input)?; @@ -24,16 +23,10 @@ fn main() -> Result<(), std::io::Error> { let history_file = File::open(history)?; let mut history_bufread = BufReader::new(history_file); let mut invoker = topola::autorouter::invoker::Invoker::new( - topola::autorouter::Autorouter::new(board).unwrap()); + topola::autorouter::Autorouter::new(board).unwrap(), + ); invoker.replay(serde_json::from_reader(history_bufread).unwrap()) } - - Ok(()) - // let content = std::fs::read_to_string(&args.input).expect("could not read file"); - // for line in content.lines() { - // if line.contains(&args.pattern) { - // println!("{}", line); - // } - // } -} \ No newline at end of file + Ok(()) +}