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