1
0
Fork 0
forked from wry/wry

io_uring: remove unnecessary interior mutability

This commit is contained in:
Julian Orth 2022-05-17 15:10:45 +02:00
parent fe80440f38
commit 20b1f29343
4 changed files with 41 additions and 45 deletions

View file

@ -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 _;
}