Skip to content

Commit

Permalink
Fix !Upin typo
Browse files Browse the repository at this point in the history
It's Unpin.
  • Loading branch information
Thomasdezeeuw committed Jul 21, 2024
1 parent 6cd7447 commit c1db546
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ op_future! {
iovecs: [libc::iovec; N],
},
/// `iovecs` can't move until the kernel has read the submission.
impl !Upin,
impl !Unpin,
setup_state: offset: u64,
setup: |submission, fd, (_bufs, iovecs), offset| unsafe {
submission.read_vectored_at(fd.fd(), iovecs, offset);
Expand Down Expand Up @@ -724,7 +724,7 @@ op_future! {
iovecs: [libc::iovec; N],
},
/// `iovecs` can't move until the kernel has read the submission.
impl !Upin,
impl !Unpin,
setup_state: offset: u64,
setup: |submission, fd, (_bufs, iovecs), offset| unsafe {
submission.write_vectored_at(fd.fd(), iovecs, offset);
Expand Down
8 changes: 4 additions & 4 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ op_future! {
iovecs: [libc::iovec; N],
},
/// `msg` and `iovecs` can't move until the kernel has read the submission.
impl !Upin,
impl !Unpin,
setup_state: flags: (u8, libc::c_int),
setup: |submission, fd, (_, address, msg, iovecs), (op, flags)| unsafe {
msg.msg_iov = iovecs.as_mut_ptr();
Expand Down Expand Up @@ -850,7 +850,7 @@ op_future! {
iovecs: [libc::iovec; N],
},
/// `iovecs` can't move until the kernel has read the submission.
impl !Upin,
impl !Unpin,
setup_state: flags: libc::c_int,
setup: |submission, fd, (_, msg, iovecs), flags| unsafe {
msg.msg_iov = iovecs.as_mut_ptr();
Expand Down Expand Up @@ -944,7 +944,7 @@ op_future! {
iovec: libc::iovec,
},
/// `iovec` can't move until the kernel has read the submission.
impl !Upin,
impl !Unpin,
setup_state: flags: libc::c_int,
setup: |submission, fd, (buf, msg, iovec), flags| unsafe {
let address = &mut msg.1;
Expand Down Expand Up @@ -991,7 +991,7 @@ op_future! {
iovecs: [libc::iovec; N],
},
/// `iovecs` can't move until the kernel has read the submission.
impl !Upin,
impl !Unpin,
setup_state: flags: libc::c_int,
setup: |submission, fd, (_, msg, iovecs), flags| unsafe {
let address = &mut msg.1;
Expand Down
14 changes: 7 additions & 7 deletions src/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ macro_rules! op_future {
// `PhantomPinned`.
$(
$(#[ $phantom_doc: meta ])*
impl !Upin,
impl !Unpin,
)?
// State held in the setup function.
setup_state: $setup_field: ident : $setup_ty: ty,
Expand All @@ -1065,7 +1065,7 @@ macro_rules! op_future {
},
$(
$(#[ $phantom_doc ])*
impl !Upin,
impl !Unpin,
)?
setup_state: $setup_field : $setup_ty,
setup: |$setup_submission, $setup_fd, $setup_resources, $setup_state| $setup_fn,
Expand Down Expand Up @@ -1113,7 +1113,7 @@ macro_rules! op_future {
},
$(
$(#[ $phantom_doc: meta ])*
impl !Upin,
impl !Unpin,
)?
setup_state: $setup_field: ident : $setup_ty: ty,
setup: |$setup_submission: ident, $setup_fd: ident, $setup_resources: tt, $setup_state: tt| $setup_fn: expr,
Expand Down Expand Up @@ -1247,7 +1247,7 @@ macro_rules! op_future {
},
$(
$(#[ $phantom_doc: meta ])*
impl !Upin,
impl !Unpin,
)?
setup_state: $setup_data: ident : $setup_ty: ty,
setup: |$setup_submission: ident, $setup_fd: ident, $setup_resources: tt, $setup_state: tt| $setup_fn: expr,
Expand All @@ -1264,7 +1264,7 @@ macro_rules! op_future {
},
$(
$(#[ $phantom_doc ])*
impl !Upin,
impl !Unpin,
)?
setup_state: $setup_data: $setup_ty,
setup: |$setup_submission, $setup_fd, $setup_resources, $setup_state| $setup_fn,
Expand All @@ -1283,7 +1283,7 @@ macro_rules! op_future {
},
$(
$(#[ $phantom_doc: meta ])*
impl !Upin,
impl !Unpin,
)?
setup_state: $setup_field: ident : $setup_ty: ty,
setup: |$setup_submission: ident, $setup_fd: ident, $setup_resources: tt, $setup_state: tt| $setup_fn: expr,
Expand All @@ -1300,7 +1300,7 @@ macro_rules! op_future {
},
$(
$(#[ $phantom_doc ])*
impl !Upin,
impl !Unpin,
)?
setup_state: $setup_field : $setup_ty,
setup: |$setup_submission, $setup_fd, $setup_resources, $setup_state| $setup_fn,
Expand Down

0 comments on commit c1db546

Please sign in to comment.