common: Remove unneeded lifetime annotation

This commit is contained in:
Jonas Platte 2021-04-17 17:58:16 +02:00
parent eec58921ad
commit c4e918cfc4
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -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<T>,
context: &PushConditionRoomCtx,
) -> &'a [Action]
pub fn get_actions<T>(&self, event: &Raw<T>, context: &PushConditionRoomCtx) -> &[Action]
where
T: Serialize,
{