diff --git a/atspi-common/src/events/mod.rs b/atspi-common/src/events/mod.rs index d0fea325..b197df7d 100644 --- a/atspi-common/src/events/mod.rs +++ b/atspi-common/src/events/mod.rs @@ -421,7 +421,10 @@ impl MessageConversion for LegacyAddAccessibleEvent { #[cfg(feature = "zbus")] impl MessageConversion for T where - T: From, + ObjectRef: Into, + // this bound is not actually used for anything, but I do not want to implement this trait for + // just any type that has an infallible conversion from an ObjectRef + T: BusProperties, { type Body = EventBodyOwned; fn try_from_message_unchecked(msg: &zbus::Message) -> Result {