@@ -1086,8 +1086,8 @@ pub(crate) fn xdp_mmap_offsets(fd: BorrowedFd<'_>) -> io::Result<XdpMmapOffsets>
10861086 getsockopt_raw ( fd, c:: SOL_XDP , c:: XDP_MMAP_OFFSETS , & mut value, & mut optlen) ?;
10871087
10881088 if optlen as usize == size_of :: < c:: xdp_mmap_offsets_v1 > ( ) {
1089- // Safety : All members of xdp_mmap_offsets are u64 and thus are correctly
1090- // initialized by `MaybeUninit::<xdp_statistics>::zeroed()`
1089+ // SAFETY : All members of xdp_mmap_offsets are ` u64` and thus are
1090+ // correctly initialized by `MaybeUninit::<xdp_statistics>::zeroed()`.
10911091 let xpd_mmap_offsets = unsafe { value. assume_init ( ) } ;
10921092 Ok ( XdpMmapOffsets {
10931093 rx : XdpRingOffset {
@@ -1121,8 +1121,8 @@ pub(crate) fn xdp_mmap_offsets(fd: BorrowedFd<'_>) -> io::Result<XdpMmapOffsets>
11211121 size_of:: <xdp_mmap_offsets>( ) ,
11221122 "unexpected getsockopt size"
11231123 ) ;
1124- // Safety : All members of xdp_mmap_offsets are u64 and thus are correctly
1125- // initialized by `MaybeUninit::<xdp_statistics>::zeroed()`
1124+ // SAFETY : All members of xdp_mmap_offsets are ` u64` and thus are
1125+ // correctly initialized by `MaybeUninit::<xdp_statistics>::zeroed()`
11261126 let xpd_mmap_offsets = unsafe { value. assume_init ( ) } ;
11271127 Ok ( XdpMmapOffsets {
11281128 rx : XdpRingOffset {
@@ -1165,8 +1165,8 @@ pub(crate) fn xdp_statistics(fd: BorrowedFd<'_>) -> io::Result<XdpStatistics> {
11651165 getsockopt_raw ( fd, c:: SOL_XDP , c:: XDP_STATISTICS , & mut value, & mut optlen) ?;
11661166
11671167 if optlen as usize == size_of :: < xdp_statistics_v1 > ( ) {
1168- // Safety : All members of xdp_statistics are u64 and thus are correctly
1169- // initialized by `MaybeUninit::<xdp_statistics>::zeroed()`
1168+ // SAFETY : All members of xdp_statistics are ` u64` and thus are
1169+ // correctly initialized by `MaybeUninit::<xdp_statistics>::zeroed()`.
11701170 let xdp_statistics = unsafe { value. assume_init ( ) } ;
11711171 Ok ( XdpStatistics {
11721172 rx_dropped : xdp_statistics. rx_dropped ,
@@ -1182,8 +1182,8 @@ pub(crate) fn xdp_statistics(fd: BorrowedFd<'_>) -> io::Result<XdpStatistics> {
11821182 size_of:: <xdp_statistics>( ) ,
11831183 "unexpected getsockopt size"
11841184 ) ;
1185- // Safety : All members of xdp_statistics are u64 and thus are correctly
1186- // initialized by `MaybeUninit::<xdp_statistics>::zeroed()`
1185+ // SAFETY : All members of xdp_statistics are ` u64` and thus are
1186+ // correctly initialized by `MaybeUninit::<xdp_statistics>::zeroed()`.
11871187 let xdp_statistics = unsafe { value. assume_init ( ) } ;
11881188 Ok ( XdpStatistics {
11891189 rx_dropped : xdp_statistics. rx_dropped ,
0 commit comments