diff --git a/ruma-common/src/push.rs b/ruma-common/src/push.rs index 96e7e51f..9f06740d 100644 --- a/ruma-common/src/push.rs +++ b/ruma-common/src/push.rs @@ -138,6 +138,14 @@ macro_rules! rulekind { } } + impl Extend<$name> for Ruleset { + fn extend>(&mut self, iter: T) { + for rule in iter { + rule.add_to(self); + } + } + } + // The following trait are needed to be able to make // a BTreeSet of the new type