mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-19 03:41:05 +00:00
refactor: clippy fixs
This commit is contained in:
parent
bedd277027
commit
b1e42f9023
4 changed files with 13 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue