Skip to content

Commit 7420e8b

Browse files
Sudan Landgewearyzen
authored andcommitted
refactor: remove PhantomData from async io
Since T is part of ring field in AsyncFileEngine, there is no longer the need to have the PhantomData anymore. Signed-off-by: Sudan Landge <[email protected]>
1 parent 40bddef commit 7420e8b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/vmm/src/devices/virtio/virtio_block/io/async_io.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
use std::fmt::Debug;
55
use std::fs::File;
6-
use std::marker::PhantomData;
76
use std::os::fd::RawFd;
87
use std::os::unix::io::AsRawFd;
98

@@ -39,7 +38,6 @@ pub struct AsyncFileEngine<T> {
3938
file: File,
4039
ring: IoUring<WrappedUserData<T>>,
4140
completion_evt: EventFd,
42-
phantom: PhantomData<T>,
4341
}
4442

4543
#[derive(Debug)]
@@ -103,7 +101,6 @@ impl<T: Debug> AsyncFileEngine<T> {
103101
file,
104102
ring,
105103
completion_evt,
106-
phantom: PhantomData,
107104
})
108105
}
109106

0 commit comments

Comments
 (0)