Skip to content

Commit

Permalink
pr feedback: let compiler infer types
Browse files Browse the repository at this point in the history
  • Loading branch information
steviez committed Oct 28, 2024
1 parent 630c1db commit 67ff531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions streamer/src/sendmmsg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ where
T: AsRef<[u8]>,
{
let size = packets.len();
let mut iovs = vec![MaybeUninit::<iovec>::uninit(); size];
let mut addrs = vec![MaybeUninit::<sockaddr_storage>::zeroed(); size];
let mut hdrs = vec![MaybeUninit::<mmsghdr>::uninit(); size];
let mut iovs = vec![MaybeUninit::uninit(); size];
let mut addrs = vec![MaybeUninit::zeroed(); size];
let mut hdrs = vec![MaybeUninit::uninit(); size];
for ((pkt, dest), hdr, iov, addr) in izip!(packets, &mut hdrs, &mut iovs, &mut addrs) {
mmsghdr_for_packet(pkt.as_ref(), dest.borrow(), iov, addr, hdr);
}
Expand Down

0 comments on commit 67ff531

Please sign in to comment.