Skip to content

Commit f96bd11

Browse files
committed
Clippy lint fixes
1 parent 40654f1 commit f96bd11

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/hl/plist/dataset_create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ impl DatasetCreate {
729729
h5try!(H5Pget_fill_value(self.id(), dtype.id(), buf.as_mut_ptr().cast()));
730730
Ok(Some(unsafe { OwnedDynValue::from_raw(tp.clone(), buf) }))
731731
}
732-
_ => Ok(None),
732+
FillValue::Undefined => Ok(None),
733733
}
734734
}
735735

src/hl/plist/file_create.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ impl FileCreateBuilder {
413413
FileSpaceStrategy::PageAggregation => {
414414
(H5F_fspace_strategy_t::H5F_FSPACE_STRATEGY_AGGR, 0, 0)
415415
}
416-
_ => (H5F_fspace_strategy_t::H5F_FSPACE_STRATEGY_NONE, 0, 0),
416+
FileSpaceStrategy::None => {
417+
(H5F_fspace_strategy_t::H5F_FSPACE_STRATEGY_NONE, 0, 0)
418+
}
417419
};
418420
h5try!(H5Pset_file_space_strategy(id, strategy, persist, threshold));
419421
}

src/hl/selection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ where
448448
Dout: ndarray::Dimension,
449449
{
450450
fn from(slice: ndarray::SliceInfo<T, Din, Dout>) -> Self {
451-
slice.deref().as_ref().iter().cloned().map(Into::into).collect::<Vec<_>>().into()
451+
slice.deref().as_ref().iter().copied().map(Into::into).collect::<Vec<_>>().into()
452452
}
453453
}
454454

0 commit comments

Comments
 (0)