Skip to content

fix: cover ToggleVisibility in send_ipc_command match under cfg(test)#584

Merged
trypsynth merged 1 commit into
trypsynth:masterfrom
mikolysz:send-ipc-fix
Jul 8, 2026
Merged

fix: cover ToggleVisibility in send_ipc_command match under cfg(test)#584
trypsynth merged 1 commit into
trypsynth:masterfrom
mikolysz:send-ipc-fix

Conversation

@mikolysz

@mikolysz mikolysz commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The IpcCommand::ToggleVisibility variant is cfg-gated on any(linux, windows, test) so that decode_execute_payload and its unit tests compile on macOS, but the corresponding match arm in send_ipc_command was only gated on any(linux, windows). Building the test target on macOS therefore hit E0004 (non-exhaustive patterns), which made every test in the paperback crate uncompilable there.

Align the match arm cfg with the variant cfg so workspace-wide cargo test builds on macOS again.

The IpcCommand::ToggleVisibility variant is cfg-gated on
any(linux, windows, test) so that decode_execute_payload and its unit
tests compile on macOS, but the corresponding match arm in
send_ipc_command was only gated on any(linux, windows). Building the
test target on macOS therefore hit E0004 (non-exhaustive patterns),
which made every test in the paperback crate uncompilable there.

Align the match arm cfg with the variant cfg so workspace-wide
`cargo test` builds on macOS again.
@trypsynth trypsynth merged commit 5965ce5 into trypsynth:master Jul 8, 2026
5 checks passed
@mikolysz mikolysz deleted the send-ipc-fix branch July 9, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants