Skip to content

Commit 2c7311e

Browse files
fixup! Fix the Allocation lifetime in File::open
1 parent 9758ff3 commit 2c7311e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/fs.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Experimental Filesystem version using closures.
22
33
use core::ffi::{c_int, c_void};
4-
use core::marker::PhantomData;
54
use core::ptr::addr_of;
65
use core::ptr::addr_of_mut;
76
use core::{
@@ -627,7 +626,6 @@ pub struct File<'a, 'b, S: driver::Storage> {
627626
// We must store a raw pointer here since the FFI retains a copy of a pointer
628627
// to the field alloc.state, so we cannot assert unique mutable access.
629628
alloc: RefCell<*mut FileAllocation<S>>,
630-
phantom: PhantomData<RefCell<&'b mut FileAllocation<S>>>,
631629
fs: &'b Filesystem<'a, S>,
632630
}
633631

@@ -835,7 +833,6 @@ impl OpenOptions {
835833

836834
let file = File {
837835
alloc: RefCell::new(alloc),
838-
phantom: PhantomData,
839836
fs,
840837
};
841838

0 commit comments

Comments
 (0)