Skip to content

Commit afad564

Browse files
committed
revert trait object usage
1 parent e92442d commit afad564

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hdf5-rs/src/hl/space.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ impl Dataspace {
5656
/// Select a slice (known as a 'hyperslab' in HDF5 terminology) of the Dataspace.
5757
/// Returns the shape of array that is capable of holding the resulting slice.
5858
/// Useful when you want to read a subset of a dataset.
59-
pub fn select_slice(&self, slice: &AsRef<[SliceOrIndex]>) -> Result<Vec<Ix>>
59+
pub fn select_slice<S>(&self, slice: S) -> Result<Vec<Ix>>
60+
where S: AsRef<[SliceOrIndex]>
6061
{
6162
let shape = self.dims();
6263
let ss: &[SliceOrIndex] = slice.as_ref();

0 commit comments

Comments
 (0)