Skip to content

Commit

Permalink
fix: make IpcMessage members non-public (#366)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mukilan authored Oct 15, 2024
1 parent 59e248f commit 5264d06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ipc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,9 @@ impl IpcSelectionResult {
/// [to]: #method.to
#[derive(PartialEq)]
pub struct IpcMessage {
pub data: Vec<u8>,
pub os_ipc_channels: Vec<OsOpaqueIpcChannel>,
pub os_ipc_shared_memory_regions: Vec<OsIpcSharedMemory>,
pub(crate) data: Vec<u8>,
pub(crate) os_ipc_channels: Vec<OsOpaqueIpcChannel>,
pub(crate) os_ipc_shared_memory_regions: Vec<OsIpcSharedMemory>,
}

impl IpcMessage {
Expand Down

0 comments on commit 5264d06

Please sign in to comment.