Bump to Rust 2024

This commit is contained in:
mdecimus
2025-02-21 09:59:23 +01:00
parent b1d6e71715
commit 44f8ef29e1
92 changed files with 570 additions and 477 deletions

View File

@@ -364,7 +364,7 @@ impl ImportCommands {
}
Err(_) if retry_count < RETRY_ATTEMPTS => {
let backoff =
rand::thread_rng().gen_range(50..=300);
rand::rng().random_range(50..=300);
tokio::time::sleep(Duration::from_millis(backoff))
.await;
retry_count += 1;