From c574f50c3168ddf1c396df4940c25feb89adf98e Mon Sep 17 00:00:00 2001 From: Alexey Galakhov Date: Sat, 23 Sep 2023 00:41:54 +0200 Subject: [PATCH] Trivial update src/handshake/machine.rs Co-authored-by: Daniel Abramov --- src/handshake/machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()`