fix compiler compat issue (missing type annotation)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-07-18 12:13:40 +02:00
parent 7d20b692df
commit 7b1d2aa594

View File

@ -208,7 +208,7 @@ impl ProxyMessageBuffer {
unsafe { io_vec(&self.seccomp_notif) },
unsafe { io_vec(&self.seccomp_resp) },
];
let len = iov.iter().map(|e| e.len()).sum();
let len: usize = iov.iter().map(|e| e.len()).sum();
if socket.sendmsg_vectored(&iov).await? != len {
io_bail!("truncated message?");
}