diff --git a/ruma-common/src/push.rs b/ruma-common/src/push.rs index f558b364..e28c36b4 100644 --- a/ruma-common/src/push.rs +++ b/ruma-common/src/push.rs @@ -97,11 +97,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<'a, T>( - &'a self, - event: &Raw, - context: &PushConditionRoomCtx, - ) -> &'a [Action] + pub fn get_actions(&self, event: &Raw, context: &PushConditionRoomCtx) -> &[Action] where T: Serialize, {