Skip to content

Commit

Permalink
fix macos build error
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Jul 30, 2024
1 parent de31672 commit e1096ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions input-emulation/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub enum EmulationCreationError {
impl EmulationCreationError {
/// request was intentionally denied by the user
pub(crate) fn cancelled_by_user(&self) -> bool {
#[cfg(feature = "libei")]
#[cfg(all(unix, feature = "libei", not(target_os = "macos")))]
if matches!(
self,
EmulationCreationError::Libei(LibeiEmulationCreationError::Ashpd(Response(
Expand All @@ -97,7 +97,7 @@ impl EmulationCreationError {
) {
return true;
}
#[cfg(feature = "xdg_desktop_portal")]
#[cfg(all(unix, feature = "xdg_desktop_portal", not(target_os = "macos")))]
if matches!(
self,
EmulationCreationError::Xdp(XdpEmulationCreationError::Ashpd(Response(
Expand Down

0 comments on commit e1096ae

Please sign in to comment.