Skip to content

Commit 1b528ff

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

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/fs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,6 @@ pub struct File<'a, 'b, S: driver::Storage> {
627627
// We must store a raw pointer here since the FFI retains a copy of a pointer
628628
// to the field alloc.state, so we cannot assert unique mutable access.
629629
alloc: RefCell<*mut FileAllocation<S>>,
630-
phantom: PhantomData<RefCell<&'b mut FileAllocation<S>>>,
631630
fs: &'b Filesystem<'a, S>,
632631
}
633632

@@ -835,7 +834,6 @@ impl OpenOptions {
835834

836835
let file = File {
837836
alloc: RefCell::new(alloc),
838-
phantom: PhantomData,
839837
fs,
840838
};
841839

0 commit comments

Comments
 (0)