Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 9682e28

Browse files
alexgeofft
authored andcommitted
Remove zeroing out of a Box<>
Boxes form a capability about the memory they point at, so nulling one out isn't particularly coherent. Plus assigning one to be null is probably undefined behavior.
1 parent 6923f8b commit 9682e28

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/filesystem.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ pub struct FileSystemRegistration<T: FileSystem> {
1717
impl<T: FileSystem> Drop for FileSystemRegistration<T> {
1818
fn drop(&mut self) {
1919
unsafe { bindings::unregister_filesystem(&mut *self.ptr) };
20-
self.ptr = unsafe { mem::zeroed() };
2120
}
2221
}
2322

0 commit comments

Comments
 (0)