io_uring: remove unnecessary interior mutability
This commit is contained in:
parent
fe80440f38
commit
20b1f29343
4 changed files with 41 additions and 45 deletions
|
|
@ -124,7 +124,7 @@ unsafe impl Task for RecvmsgTask {
|
|||
|
||||
fn encode(&self, sqe: &mut io_uring_sqe) {
|
||||
sqe.opcode = IORING_OP_RECVMSG;
|
||||
sqe.fd = self.fd;
|
||||
sqe.fd = self.fd as _;
|
||||
sqe.u2.addr = &self.msghdr as *const _ as _;
|
||||
sqe.u3.msg_flags = c::MSG_CMSG_CLOEXEC as _;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue