Skip to content

Commit c574f50

Browse files
Trivial update src/handshake/machine.rs
Co-authored-by: Daniel Abramov <[email protected]>
1 parent a503919 commit c574f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handshake/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ pub(crate) struct AttackCheck {
146146
impl AttackCheck {
147147
/// Initialize attack checking for incoming buffer.
148148
fn new() -> Self {
149-
AttackCheck { number_of_packets: 0, number_of_bytes: 0 }
149+
Self { number_of_packets: 0, number_of_bytes: 0 }
150150
}
151151

152152
/// Check the size of an incoming packet. To be called immediately after `read()`

0 commit comments

Comments
 (0)