format: keep dataset_fill_value_in's &[u8] signature

Making dataset_fill_value_in generic over Storage broke callers that pass
an array (`include_bytes!`): a generic parameter does not unsize-coerce
`&[u8; N]`. It takes &[u8] again, as before this branch, and wraps the
new dataset_fill_value_from_storage(&dyn Storage, ..).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
osobh
2026-09-26 13:11:46 -05:00
co-authored by Claude Opus 5.5
parent 5705866d40
commit 24f0c71939
2 changed files with 17 additions and 10 deletions
@@ -44,7 +44,7 @@ use clawhdf5_format::error::FormatError;
use clawhdf5_format::extensible_array::{
ExtensibleArrayHeader, read_extensible_array_chunks, read_extensible_array_chunks_in,
};
use clawhdf5_format::fill_value::dataset_fill_value_in;
use clawhdf5_format::fill_value::{dataset_fill_value_from_storage, dataset_fill_value_in};
use clawhdf5_format::fixed_array::{
FixedArrayHeader, read_fixed_array_chunks, read_fixed_array_chunks_in,
};
@@ -189,7 +189,7 @@ impl Walk<'_> {
self.same(
"fill value",
&want,
&dataset_fill_value_in(self.storage, &header.messages, os, ls),
&dataset_fill_value_from_storage(self.st(), &header.messages, os, ls),
);
for msg in &header.messages {