fix: remove panics from handle_introspection

This commit is contained in:
Michael Mikovsky
2026-04-24 14:15:40 -06:00
parent 3f1116c26a
commit 71afc49ac9
+3 -3
View File
@@ -353,7 +353,7 @@ impl ProtocolEndpoint {
leaf_name: leaf_name.clone(),
procedures: leaf.procedures.clone(),
})
.expect("serialize")
.map_err(|e| EndpointError::Frame(FrameError::Serialize(e)))?
.to_vec()
} else {
to_bytes::<RkyvError>(&EndpointIntrospection {
@@ -366,9 +366,9 @@ impl ProtocolEndpoint {
})
.collect(),
})
.expect("serialize")
.map_err(|e| EndpointError::Frame(FrameError::Serialize(e)))?
.to_vec()
};
};;
let response_header = PacketHeader {
packet_type: PacketType::Data,