Skip to content

Commit 3050354

Browse files
committed
Remove unnecessary prefix
1 parent 9703771 commit 3050354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hdf5-types/src/dyn_value.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ impl OwnedDynValue {
736736
///
737737
/// Will fail if the type-descriptors are not equal
738738
pub fn cast<T: H5Type>(mut self) -> Result<T, Self> {
739-
use std::mem::MaybeUninit;
739+
use mem::MaybeUninit;
740740
if self.tp != T::type_descriptor() {
741741
return Err(self);
742742
}
@@ -758,7 +758,7 @@ impl OwnedDynValue {
758758
self.tp = <[u8; 0]>::type_descriptor();
759759
// We must also swap out the buffer to ensure we can create the `DynValue`
760760
let mut b: Box<[u8]> = Box::new([]);
761-
std::mem::swap(&mut self.buf, &mut b);
761+
mem::swap(&mut self.buf, &mut b);
762762

763763
Ok(unsafe { out.assume_init() })
764764
}

0 commit comments

Comments
 (0)