Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
yayanyang committed Mar 22, 2024
1 parent 137049b commit c8c71e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/rasi/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@ mod windows {
) -> Poll<io::Result<usize>> {
match self.syscall.write(cx.waker().clone(), &self.socket, buf) {
rasi_syscall::CancelablePoll::Ready(r) => Poll::Ready(r),
rasi_syscall::CancelablePoll::Pending() => {
rasi_syscall::CancelablePoll::Pending(write_cancel_handle) => {
self.write_cancel_handle = write_cancel_handle;
Poll::Pending
}
Expand Down
2 changes: 1 addition & 1 deletion crates/syscall/src/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use std::any::TypeId;

/// A transparent type pointer that represents any implementation-related asynchronous system type.
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Handle {
data: *const (),
drop: fn(*const ()),
Expand Down

0 comments on commit c8c71e3

Please sign in to comment.