We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9703771 commit 3050354Copy full SHA for 3050354
hdf5-types/src/dyn_value.rs
@@ -736,7 +736,7 @@ impl OwnedDynValue {
736
///
737
/// Will fail if the type-descriptors are not equal
738
pub fn cast<T: H5Type>(mut self) -> Result<T, Self> {
739
- use std::mem::MaybeUninit;
+ use mem::MaybeUninit;
740
if self.tp != T::type_descriptor() {
741
return Err(self);
742
}
@@ -758,7 +758,7 @@ impl OwnedDynValue {
758
self.tp = <[u8; 0]>::type_descriptor();
759
// We must also swap out the buffer to ensure we can create the `DynValue`
760
let mut b: Box<[u8]> = Box::new([]);
761
- std::mem::swap(&mut self.buf, &mut b);
+ mem::swap(&mut self.buf, &mut b);
762
763
Ok(unsafe { out.assume_init() })
764
0 commit comments