Skip to content

Commit 5264d06

Browse files
authored
fix: make IpcMessage members non-public (#366)
The original `OpaqueIpcMessage` struct that was superseded by the new `IpcMessage` had only non-public members, Having the members of `IpcMessage` marked as `pub` also mean they become part of the API, which we don't expect to be useful. So this change just marks them as `pub(crate)`. Signed-off-by: Mukilan Thiyagarajan <[email protected]>
1 parent 59e248f commit 5264d06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ipc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,9 @@ impl IpcSelectionResult {
665665
/// [to]: #method.to
666666
#[derive(PartialEq)]
667667
pub struct IpcMessage {
668-
pub data: Vec<u8>,
669-
pub os_ipc_channels: Vec<OsOpaqueIpcChannel>,
670-
pub os_ipc_shared_memory_regions: Vec<OsIpcSharedMemory>,
668+
pub(crate) data: Vec<u8>,
669+
pub(crate) os_ipc_channels: Vec<OsOpaqueIpcChannel>,
670+
pub(crate) os_ipc_shared_memory_regions: Vec<OsIpcSharedMemory>,
671671
}
672672

673673
impl IpcMessage {

0 commit comments

Comments
 (0)