We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a503919 commit c574f50Copy full SHA for c574f50
src/handshake/machine.rs
@@ -146,7 +146,7 @@ pub(crate) struct AttackCheck {
146
impl AttackCheck {
147
/// Initialize attack checking for incoming buffer.
148
fn new() -> Self {
149
- AttackCheck { number_of_packets: 0, number_of_bytes: 0 }
+ Self { number_of_packets: 0, number_of_bytes: 0 }
150
}
151
152
/// Check the size of an incoming packet. To be called immediately after `read()`
0 commit comments