style(fake-tcp): fix warnings

This commit is contained in:
Datong Sun
2025-03-14 22:45:24 -07:00
parent 333c6dd059
commit 201da45ee8
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ pub enum IPPacket<'p> {
V6(ipv6::Ipv6Packet<'p>),
}
impl<'a> IPPacket<'a> {
impl IPPacket<'_> {
pub fn get_source(&self) -> IpAddr {
match self {
IPPacket::V4(p) => IpAddr::V4(p.get_source()),