aboutsummaryrefslogtreecommitdiff
path: root/src/message/handshake/types.rs
diff options
context:
space:
mode:
authorMax Audron <me@audron.dev>2026-02-22 14:06:16 +0100
committerMax Audron <me@audron.dev>2026-02-22 14:06:16 +0100
commit024eb3df4a0786a92033baea123aa779998cdc28 (patch)
tree412670a982455cb3351c199b7df21b0b22f3a36e /src/message/handshake/types.rs
parentSyncable trait error handling (diff)
NetworkList and signalproxy objects error handling
Diffstat (limited to 'src/message/handshake/types.rs')
-rw-r--r--src/message/handshake/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message/handshake/types.rs b/src/message/handshake/types.rs
index 9bd8aec..91248c4 100644
--- a/src/message/handshake/types.rs
+++ b/src/message/handshake/types.rs
@@ -19,7 +19,7 @@ impl HandshakeSerialize for VariantMap {
res.extend(v.serialize()?);
}
- let len: i32 = (self.len() * 2).try_into().unwrap();
+ let len: i32 = (self.len() * 2).try_into()?;
util::insert_bytes(0, &mut res, &mut (len).to_be_bytes());
Ok(res)