From afe9dab09237f614ead06ef2c879a671e341616b Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Fri, 7 Jul 2023 00:31:45 +0200 Subject: remove dead code --- src/gui/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/mod.rs') diff --git a/src/gui/mod.rs b/src/gui/mod.rs index 0c1b9cc..a32ceff 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -103,7 +103,6 @@ async fn generate() -> Index { Index::generate(input, file, |counter, nof| { let p = ((counter * 100) / nof) as u8; *GENERATE_PROGRESS.lock().unwrap() = p; - eprint!("\r\x1b[2K{} of {} files indexed ({}%)", counter, nof, p); std::io::stdout().flush().ok(); }) } @@ -198,7 +197,7 @@ impl Application for App { ) } Message::SearchFinished(results) => { - state.results = results.clone(); + state.results = results; Command::none() } _ => { -- cgit v1.2.3-70-g09d2