diff --git a/src/common.rs b/src/common.rs index 2a6d8069b10b66f9aa9353131cae7d157c718c30..537487d427612edb0a78dec1f1462bfd040f1db5 100644 --- a/src/common.rs +++ b/src/common.rs @@ -52,7 +52,7 @@ pub struct ComponentId(Id); // PUB because it can be returned by errors /// Identifier of a port in a session #[derive(Copy, Clone, Eq, PartialEq, Ord, Hash, PartialOrd, serde::Serialize, serde::Deserialize)] #[repr(transparent)] -pub struct PortId(Id); +pub struct PortId(pub(crate) Id); /// A safely aliasable heap-allocated payload of message bytes #[derive(Default, Eq, PartialEq, Clone, Ord, PartialOrd)]