fd-queue = {version = "1.0.0", features = ["tokio-fd"]}
libc = "0.2"
error[E0308]: mismatched types
--> /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/fd-queue-1.1.0/src/biqueue/iomsg.rs:173:31
|
173 | (*p).msg_iovlen = iov_len;
| --------------- ^^^^^^^ expected `i32`, found `usize`
| |
| expected due to the type of this binding
error[E0308]: mismatched types
--> /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/fd-queue-1.1.0/src/biqueue/iomsg.rs:175:35
|
175 | (*p).msg_controllen = cmsg_buffer.len();
| ------------------- ^^^^^^^^^^^^^^^^^ expected `u32`, found `usize`
| |
| expected due to the type of this binding
error[E0308]: mismatched types
--> /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/fd-queue-1.1.0/src/biqueue/iomsg.rs:331:40
|
331 | self.mhdr.msg_controllen = cmsg_buffer_fds_space(count);
| ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `usize`
| |
| expected due to the type of this binding
error[E0308]: mismatched types
--> /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/fd-queue-1.1.0/src/biqueue/iomsg.rs:492:38
|
492 | assert!(cmsg.cmsg_len <= (isize::MAX as usize));
| ^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `usize`
|
help: you can convert a `usize` to a `u32` and panic if the converted value doesn't fit
|
492 | assert!(cmsg.cmsg_len <= ((isize::MAX as usize)).try_into().unwrap());
| + +++++++++++++++++++++
error[E0308]: mismatched types
--> /Users/mac/.cargo/registry/src/github.com-1ecc6299db9ec823/fd-queue-1.1.0/src/biqueue/iomsg.rs:634:43
|
634 | let data_size = (cmsg).cmsg_len - hdr_size;
| ^^^^^^^^ expected `u32`, found `usize`