mirror of
https://github.com/dndx/phantun.git
synced 2025-10-15 18:25:36 +08:00
style(fake-tcp): fix warnings
This commit is contained in:
@@ -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()),
|
||||
|
Reference in New Issue
Block a user