diff --git a/src/timeout.rs b/src/timeout.rs index a744ca2c4..6d4cde271 100644 --- a/src/timeout.rs +++ b/src/timeout.rs @@ -77,14 +77,17 @@ impl FromStr for Timeout { } } +#[cfg(all(feature = "dbus", unix, not(target_os = "macos")))] pub struct TimeoutMessage(Timeout); +#[cfg(all(feature = "dbus", unix, not(target_os = "macos")))] impl From for TimeoutMessage { fn from(hint: Timeout) -> Self { TimeoutMessage(hint) } } +#[cfg(all(feature = "dbus", unix, not(target_os = "macos")))] impl std::ops::Deref for TimeoutMessage { type Target = Timeout;