aboutsummaryrefslogtreecommitdiff
path: root/src/message/handshake/protocol.rs
diff options
context:
space:
mode:
authorMax Audron <me@audron.dev>2026-02-21 14:35:01 +0100
committerMax Audron <me@audron.dev>2026-02-21 14:35:01 +0100
commitf42ef4bec6d1c63c0d8564cfb06e996666dedbe3 (patch)
treee526bf4cae5ecf798469acc157b14122d4a5e25a /src/message/handshake/protocol.rs
parentreplace all match_variant instances with try_into (diff)
clean up clippy lints
Diffstat (limited to '')
-rw-r--r--src/message/handshake/protocol.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/message/handshake/protocol.rs b/src/message/handshake/protocol.rs
index 73a82b9..2a7d9ac 100644
--- a/src/message/handshake/protocol.rs
+++ b/src/message/handshake/protocol.rs
@@ -1,13 +1,15 @@
use crate::serialize::{Deserialize, Serialize};
+#[derive(Debug, Default)]
pub enum Protocol {
Legacy = 0x00000001,
+ #[default]
Datastream = 0x00000002,
}
impl Protocol {
pub fn new() -> Self {
- Protocol::Datastream
+ Protocol::default()
}
pub fn serialize(self) -> Vec<u8> {