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
+4 -1
View File
@@ -140,7 +140,10 @@ impl ObjectStoreStorage {
/// The object's first `n` bytes (fewer if it is shorter).
pub(crate) fn fetch_first(&self, n: u64) -> Result<Vec<u8>, RemoteError> {
Ok(self.fetch_all(&[0..n])?.pop().unwrap_or_default())
Ok(self
.fetch_all(std::slice::from_ref(&(0..n)))?
.pop()
.unwrap_or_default())
}
fn fetch_all(&self, ranges: &[Range<u64>]) -> Result<Vec<Vec<u8>>, RemoteError> {