Skip to content

Commit

Permalink
Change trait bound to be more generic
Browse files Browse the repository at this point in the history
Change trait bounds for auto-impl of MessageConversion
  • Loading branch information
TTWNO committed Jul 3, 2024
1 parent 7e4c1e1 commit 1443168
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion atspi-common/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,10 @@ impl MessageConversion for LegacyAddAccessibleEvent {
#[cfg(feature = "zbus")]
impl<T> MessageConversion for T
where
T: From<ObjectRef>,
ObjectRef: Into<T>,
// 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<Self, AtspiError> {
Expand Down

0 comments on commit 1443168

Please sign in to comment.