Skip to content

Commit 642e841

Browse files
committed
fix: change back more of bytecodealliance#5326
1 parent 54f52dd commit 642e841

File tree

1 file changed

+4
-4
lines changed
  • crates/wasi-common/tokio/src

1 file changed

+4
-4
lines changed

crates/wasi-common/tokio/src/file.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ macro_rules! wasi_file_impl {
9797
self
9898
}
9999
#[cfg(unix)]
100-
fn pollable(&self) -> Option<Arc<dyn AsFd + '_>> {
101-
self.0.pollable()
100+
fn pollable(&self) -> Option<rustix::fd::BorrowedFd> {
101+
Some(self.0.as_fd())
102102
}
103103
#[cfg(windows)]
104-
fn pollable(&self) -> Option<Arc<dyn AsRawHandleOrSocket + '_>> {
105-
self.0.pollable()
104+
fn pollable(&self) -> Option<io_extras::os::windows::RawHandleOrSocket> {
105+
Some(self.0.as_raw_handle_or_socket())
106106
}
107107
async fn datasync(&self) -> Result<(), Error> {
108108
block_on_dummy_executor(|| self.0.datasync())

0 commit comments

Comments
 (0)