From f4054783d18385a5ab7b2907d5dfac161de36b32 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Mon, 8 Jul 2024 02:03:56 +0200 Subject: [PATCH] cleanup: remove committed output file and commented-out code --- dist/.stage/favicon-bb479c4c9d076525.ico | Bin 4286 -> 0 bytes src/bin/topola-cli/main.rs | 19 ++++++------------- 2 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 dist/.stage/favicon-bb479c4c9d076525.ico diff --git a/dist/.stage/favicon-bb479c4c9d076525.ico b/dist/.stage/favicon-bb479c4c9d076525.ico deleted file mode 100644 index 66ab34e9efc03407372090833c11e45e93f69a91..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4286 zcmeHKO-NKx6nuQ5e)J+O#O5g;WqYg@m;T2?`SmE;-7RIQ}V>x(Ew&?J9+Lw_J^RR6T zZOA029GlIbtv~l!w*R6BBYXbDy(8p*zJCgRKK-qxnIZdLnyLQgQyUvBlkc!hbXD!z z$oqVsJiigLvARE#oN_Go<0no{GrE)I2j(%ab+62kiSF~6N15|>viz!QT;a9WWs*~l z1!og;)+Wmj+#z1;eVHSD-O2&qAaQ!V=GJ8SHSMK~^N*C4KFm!&uN{fKZ?XBzA-}(E zHd#r+X3&7Youtdv<`lUw@54a9=sSfiT?wA+#D#HLa8y-wEoR#U$*mERn;HJ_EdFE>)L_%2nP25_jfs*@jBwhxQex$BOSI&GB?-YC;3#> zJRtj$>F8l6*8kDYp`VGx<30%5K65|L#CBUZ`eJd|`!V(nmzSHXWBu{w=;H-+&v9Hx zRlDcNILueVH$?;bQuN|H=wpOOkI>g{>4~1*XXL}^#~PMM&S@(6@_`fhL64_%RV)bg zK5g@vkAx5NTWq^1Y(i2_`1)lf*&22HPmxpCqae?E#n{gu{Aw3tk~{UaFa60yWTc7tfC#-^VvR>bKH zL@EmdQM~*Md4}WXSeKF8bUq7Hf&+X_4H#Q7RSPfw-l0OoN6psfY)l-2# DucR>g 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(()) +}