We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54f52dd commit 642e841Copy full SHA for 642e841
crates/wasi-common/tokio/src/file.rs
@@ -97,12 +97,12 @@ macro_rules! wasi_file_impl {
97
self
98
}
99
#[cfg(unix)]
100
- fn pollable(&self) -> Option<Arc<dyn AsFd + '_>> {
101
- self.0.pollable()
+ fn pollable(&self) -> Option<rustix::fd::BorrowedFd> {
+ Some(self.0.as_fd())
102
103
#[cfg(windows)]
104
- fn pollable(&self) -> Option<Arc<dyn AsRawHandleOrSocket + '_>> {
105
+ fn pollable(&self) -> Option<io_extras::os::windows::RawHandleOrSocket> {
+ Some(self.0.as_raw_handle_or_socket())
106
107
async fn datasync(&self) -> Result<(), Error> {
108
block_on_dummy_executor(|| self.0.datasync())
0 commit comments