style: spell two Durations in their optimal units

New clippy flags duration_suboptimal_units; from_mins(5) and
from_secs(1) say what from_secs(300) and from_millis(1000) meant.
This commit is contained in:
Michel de Graaf
2026-09-10 09:04:48 +02:00
parent 611648c5d4
commit e641644808
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4534,7 +4534,7 @@ fn a_queued_download_can_ask_where_it_sits() {
ready_rx
.recv_timeout(Duration::from_secs(5))
.expect("mock peer P connection");
std::thread::sleep(Duration::from_millis(1000));
std::thread::sleep(Duration::from_secs(1));
let download_dir = unique_download_dir();
let (_download, _status_rx) = client