error[E0308]: mismatched types
--> /wrkdirs/usr/ports/security/solana/work/solana-1.10.21/cargo-crates/quinn-udp-0.1.0/src/unix.rs:232:72
|
232 | unsafe { libc::sendmmsg(io.as_raw_fd(), msgs.as_mut_ptr(), num_transmits as u32, 0) };
| ^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u32`
|
help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
|
232 | unsafe { libc::sendmmsg(io.as_raw_fd(), msgs.as_mut_ptr(), (num_transmits as u32).try_into().unwrap(), 0) };
| + +++++++++++++++++++++
error[E0308]: mismatched types
--> /wrkdirs/usr/ports/security/solana/work/solana-1.10.21/cargo-crates/quinn-udp-0.1.0/src/unix.rs:341:17
|
341 | bufs.len().min(BATCH_SIZE) as libc::c_uint,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `u32`
|
help: you can convert a `u32` to a `usize` and panic if the converted value doesn't fit
|
341 | (bufs.len().min(BATCH_SIZE) as libc::c_uint).try_into().unwrap(),
| + +++++++++++++++++++++
The solana project fails:
rust-1.60.0 FreeBSD 13.1