From a01ee1068bd6d2beb01a65f1b553d62ae72d720c Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Fri, 4 Aug 2023 22:29:59 -0400 Subject: [PATCH] fmt --- src/args/mod.rs | 1 - src/args/protomask.rs | 1 - src/common/mod.rs | 2 +- src/common/packet_handler.rs | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/args/mod.rs b/src/args/mod.rs index 4f4fa42..7ff1b4f 100644 --- a/src/args/mod.rs +++ b/src/args/mod.rs @@ -5,7 +5,6 @@ use cfg_if::cfg_if; pub mod protomask; pub mod protomask_clat; - // Used to trick the build process into including a CLI argument based on a feature flag cfg_if! { if #[cfg(feature = "profiler")] { diff --git a/src/args/protomask.rs b/src/args/protomask.rs index 92265b4..8353392 100644 --- a/src/args/protomask.rs +++ b/src/args/protomask.rs @@ -107,4 +107,3 @@ impl From for (Ipv4Addr, Ipv6Addr) { (val.ipv4, val.ipv6) } } - diff --git a/src/common/mod.rs b/src/common/mod.rs index b10937a..a9658e6 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -3,5 +3,5 @@ pub mod logging; pub mod packet_handler; pub mod permissions; +pub mod profiler; pub mod rfc6052; -pub mod profiler; \ No newline at end of file diff --git a/src/common/packet_handler.rs b/src/common/packet_handler.rs index 621f3a5..8659afe 100644 --- a/src/common/packet_handler.rs +++ b/src/common/packet_handler.rs @@ -8,7 +8,6 @@ pub enum PacketHandlingError { FastNatError(#[from] fast_nat::error::Error), } - /// Get the layer 3 protocol of a packet pub fn get_layer_3_proto(packet: &[u8]) -> Option { // If the packet is empty, return nothing