diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-30 15:09:51 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-30 15:09:51 +0200 |
| commit | 7a565f377203ba8e01574952014a23dfa8d94fa3 (patch) | |
| tree | 9bf25a5f618fd79b9c9911ea670f9d4b3d2bba99 /src/commands/utilities.rs | |
| parent | fix assistant and senator (diff) | |
| download | senator-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.rs | 5 |
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)| { |
