Skip to content

Commit

Permalink
Trivial update src/handshake/machine.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
  • Loading branch information
agalakhov and daniel-abramov authored Sep 22, 2023
1 parent a503919 commit c574f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handshake/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down

0 comments on commit c574f50

Please sign in to comment.