mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-16 16:25:08 +00:00
Fix clippy warnings from 1.95
This commit is contained in:
committed by
Benjamin Saunders
parent
bda24fdae5
commit
7f7d9ea901
@@ -964,7 +964,10 @@ impl ControlMetadata {
|
||||
(libc::IPPROTO_IPV6, libc::IPV6_PKTINFO) => {
|
||||
let pktinfo = unsafe { cmsg::decode::<libc::in6_pktinfo, libc::cmsghdr>(cmsg) };
|
||||
self.dst_ip = Some(IpAddr::V6(Ipv6Addr::from(pktinfo.ipi6_addr.s6_addr)));
|
||||
self.interface_index = Some(pktinfo.ipi6_ifindex as u32);
|
||||
#[cfg_attr(not(target_os = "android"), expect(clippy::unnecessary_cast))]
|
||||
{
|
||||
self.interface_index = Some(pktinfo.ipi6_ifindex as u32);
|
||||
}
|
||||
}
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
(libc::SOL_UDP, libc::UDP_GRO) => unsafe {
|
||||
|
||||
Reference in New Issue
Block a user