aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/utilities.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-30 15:09:51 +0200
committersalmonik <salmonik@tuta.io>2026-07-30 15:09:51 +0200
commit7a565f377203ba8e01574952014a23dfa8d94fa3 (patch)
tree9bf25a5f618fd79b9c9911ea670f9d4b3d2bba99 /src/commands/utilities.rs
parentfix assistant and senator (diff)
downloadsenator-sperma-7a565f377203ba8e01574952014a23dfa8d94fa3.tar.gz
senator-sperma-7a565f377203ba8e01574952014a23dfa8d94fa3.zip
fix: auto completion timing out before ready + fix preexisting warns
Diffstat (limited to 'src/commands/utilities.rs')
-rw-r--r--src/commands/utilities.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs
index 10ce403..3f7e812 100644
--- a/src/commands/utilities.rs
+++ b/src/commands/utilities.rs
@@ -329,11 +329,10 @@ async fn find_downloaded_file(dir: &str) -> Option<(String, String)> {
329 Ok(t) => t, 329 Ok(t) => t,
330 Err(_) => continue, 330 Err(_) => continue,
331 }; 331 };
332 if let Some((t, _)) = &newest { 332 if let Some((t, _)) = &newest
333 if *t >= mtime { 333 && *t >= mtime {
334 continue; 334 continue;
335 } 335 }
336 }
337 newest = Some((mtime, entry.path().to_string_lossy().into_owned())); 336 newest = Some((mtime, entry.path().to_string_lossy().into_owned()));
338 } 337 }
339 newest.map(|(_, p)| { 338 newest.map(|(_, p)| {