refactor: clippy fixs

This commit is contained in:
Cain 2024-01-18 18:59:19 +00:00
parent bedd277027
commit b1e42f9023
4 changed files with 13 additions and 13 deletions

View file

@ -210,13 +210,13 @@ pub mod capture {
/// Represents the TCP protocol provider.
pub(crate) struct ProtocolTCP;
impl ProtocolProvider for ProtocolTCP {
fn protocol() -> Protocol { Protocol::TCP }
fn protocol() -> Protocol { Protocol::Tcp }
}
/// Represents the UDP protocol provider.
pub(crate) struct ProtocolUDP;
impl ProtocolProvider for ProtocolUDP {
fn protocol() -> Protocol { Protocol::UDP }
fn protocol() -> Protocol { Protocol::Udp }
}
/// A socket wrapper that allows capturing packets.