clawhdf5-remote: clippy clean with every feature set

checked_div in the test server's throttle, a slice for the single range
of fetch_first, and dead-code allowances for the redaction helpers in a
build with neither http nor a cloud store.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
osobh
2026-09-26 18:37:47 -05:00
co-authored by Claude Opus 5.5
parent 0e98ffc498
commit 67e72b30d7
3 changed files with 18 additions and 4 deletions
@@ -405,8 +405,8 @@ fn serve(conn: TcpStream, s: &Shared) -> std::io::Result<()> {
for piece in rest.chunks(4096) {
out.write_all(piece)?;
out.flush()?;
if bps > 0 {
std::thread::sleep(Duration::from_micros(4096 * 1_000_000 / bps));
if let Some(us) = (4096 * 1_000_000u64).checked_div(bps) {
std::thread::sleep(Duration::from_micros(us));
}
}
} else {