aboutsummaryrefslogtreecommitdiff
path: root/src/gui/mod.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-07-07 00:31:45 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-07-07 00:31:45 +0200
commitafe9dab09237f614ead06ef2c879a671e341616b (patch)
tree9dca59d3b663767900a28bfe434cd24d5bf3d4f1 /src/gui/mod.rs
parent179920fa402b81a3ae8cc3c4b415172f71eb8d11 (diff)
remove dead code
Diffstat (limited to 'src/gui/mod.rs')
-rw-r--r--src/gui/mod.rs3
1 files changed, 1 insertions, 2 deletions
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()
}
_ => {