diff --git a/src/handshake/machine.rs b/src/handshake/machine.rs index 909accca..c7fd886a 100644 --- a/src/handshake/machine.rs +++ b/src/handshake/machine.rs @@ -20,7 +20,7 @@ pub struct HandshakeMachine { impl HandshakeMachine { /// Start reading data from the peer. pub fn start_read(stream: Stream) -> Self { - HandshakeMachine { + Self { stream, state: HandshakeState::Reading(ReadBuffer::new(), AttackCheck::new()), }