chore: update to Rust 2024 edition

This commit is contained in:
mayor
2026-01-04 20:08:16 +01:00
committed by Michel de Graaf
parent f7ebcccdd3
commit 16c8a4bde9
9 changed files with 39 additions and 55 deletions
+2 -3
View File
@@ -306,8 +306,8 @@ impl DownloadPeer {
processor.process_data_chunk(data);
chunk_counter += 1;
if let Some(ref dl) = download {
if chunk_counter % PROGRESS_UPDATE_CHUNKS == 0 {
if let Some(ref dl) = download
&& chunk_counter % PROGRESS_UPDATE_CHUNKS == 0 {
let elapsed =
last_update_time.elapsed().as_secs_f64();
let bytes_since_last_update =
@@ -331,7 +331,6 @@ impl DownloadPeer {
last_update_time = Instant::now();
}
}
let expected_size = download
.as_ref()