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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user