mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
fix: remove panics from handle_introspection
This commit is contained in:
@@ -353,7 +353,7 @@ impl ProtocolEndpoint {
|
|||||||
leaf_name: leaf_name.clone(),
|
leaf_name: leaf_name.clone(),
|
||||||
procedures: leaf.procedures.clone(),
|
procedures: leaf.procedures.clone(),
|
||||||
})
|
})
|
||||||
.expect("serialize")
|
.map_err(|e| EndpointError::Frame(FrameError::Serialize(e)))?
|
||||||
.to_vec()
|
.to_vec()
|
||||||
} else {
|
} else {
|
||||||
to_bytes::<RkyvError>(&EndpointIntrospection {
|
to_bytes::<RkyvError>(&EndpointIntrospection {
|
||||||
@@ -366,9 +366,9 @@ impl ProtocolEndpoint {
|
|||||||
})
|
})
|
||||||
.collect(),
|
.collect(),
|
||||||
})
|
})
|
||||||
.expect("serialize")
|
.map_err(|e| EndpointError::Frame(FrameError::Serialize(e)))?
|
||||||
.to_vec()
|
.to_vec()
|
||||||
};
|
};;
|
||||||
|
|
||||||
let response_header = PacketHeader {
|
let response_header = PacketHeader {
|
||||||
packet_type: PacketType::Data,
|
packet_type: PacketType::Data,
|
||||||
|
|||||||
Reference in New Issue
Block a user