mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
fix: remove panics from handle_introspection
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user