Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit b284943

Browse files
committed
Fix lints
1 parent f544b7e commit b284943

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/nic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ impl NicIndex {
382382
let addr = &*ifaddr.ifa_addr.cast::<socket::sockaddr_in6>();
383383
ipv6 = Some(addr.sin6_addr.into());
384384
}
385-
_ => continue,
385+
_ => {}
386386
}
387387
}
388388

src/packet.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,15 @@ pub enum CsumOffload {
134134
/// ```
135135
///
136136
/// 1. The first ([`libc::xdp::XDP_PACKET_HEADROOM`]) segment of the buffer is
137-
/// reserved for kernel usage
137+
/// reserved for kernel usage
138138
/// 1. `headroom` is an optional segment that can be configured on the [`crate::umem::UmemCfgBuilder::head_room`]
139-
/// the packet is allocated from which the kernel will not fill with data,
140-
/// allowing the packet to grow downwards (eg. IPv4 -> IPv6) without copying
141-
/// bytes
139+
/// the packet is allocated from which the kernel will not fill with data,
140+
/// allowing the packet to grow downwards (eg. IPv4 -> IPv6) without copying
141+
/// bytes
142142
/// 1. The next segment is the actual packet contents as received by the NIC or
143-
/// sent by userspace
143+
/// sent by userspace
144144
/// 1. The last segment is the uninitialized portion of the chunk occupied by this
145-
/// packet, up to the size configured on the owning [`crate::Umem`].
145+
/// packet, up to the size configured on the owning [`crate::Umem`].
146146
///
147147
/// The packet portion of the packet is then composed of the various layers/data,
148148
/// for example an IPv4 UDP packet:
@@ -725,11 +725,11 @@ impl Packet {
725725
/// and/or [`crate::umem::UmemCfgBuilder::tx_timestamp`] were true
726726
///
727727
/// - If `csum` is `CsumOffload::Request`, this will request that the Layer 4
728-
/// checksum computation be offload to the NIC before transmission. Note that
729-
/// this requires that the IP pseudo header checksum be calculated and stored
730-
/// in the same location.
728+
/// checksum computation be offload to the NIC before transmission. Note that
729+
/// this requires that the IP pseudo header checksum be calculated and stored
730+
/// in the same location.
731731
/// - If `request_timestamp` is true, requests that the NIC write the timestamp
732-
/// the packet was transmitted. This can be retrieved using [`crate::CompletionRing::dequeue_with_timestamps`]
732+
/// the packet was transmitted. This can be retrieved using [`crate::CompletionRing::dequeue_with_timestamps`]
733733
#[inline]
734734
pub fn set_tx_metadata(
735735
&mut self,

0 commit comments

Comments
 (0)