diff --git a/src/handshake/machine.rs b/src/handshake/machine.rs index e537cfd2..9003287b 100644 --- a/src/handshake/machine.rs +++ b/src/handshake/machine.rs @@ -146,7 +146,7 @@ pub(crate) struct AttackCheck { impl AttackCheck { /// Initialize attack checking for incoming buffer. fn new() -> Self { - AttackCheck { number_of_packets: 0, number_of_bytes: 0 } + Self { number_of_packets: 0, number_of_bytes: 0 } } /// Check the size of an incoming packet. To be called immediately after `read()`