diff --git a/crates/ruma-common/src/push.rs b/crates/ruma-common/src/push.rs index c4caaa40..f23c6944 100644 --- a/crates/ruma-common/src/push.rs +++ b/crates/ruma-common/src/push.rs @@ -103,10 +103,7 @@ impl Ruleset { &self, event: &Raw, context: &PushConditionRoomCtx, - ) -> Option> - where - T: Serialize, - { + ) -> Option> { let event = FlattenedJson::from_raw(event); self.iter().find(|rule| rule.applies(&event, context)) } @@ -119,10 +116,7 @@ impl Ruleset { /// /// * `event` - The raw JSON of a room message event. /// * `context` - The context of the message and room at the time of the event. - pub fn get_actions(&self, event: &Raw, context: &PushConditionRoomCtx) -> &[Action] - where - T: Serialize, - { + pub fn get_actions(&self, event: &Raw, context: &PushConditionRoomCtx) -> &[Action] { self.get_match(event, context).map(|rule| rule.actions()).unwrap_or(&[]) } }