Skip to content

Commit d73ecb3

Browse files
committed
Fix non-option with_power_levels(), simplifies callsites and callee.
Signed-off-by: Jason Volk <jason@zemos.net>
1 parent 015df0a commit d73ecb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/ruma-common/src/push/condition.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ impl PushConditionRoomCtx {
368368
}
369369

370370
/// Add the given power levels context to this `PushConditionRoomCtx`.
371-
pub fn with_power_levels(self, power_levels: PushConditionPowerLevelsCtx) -> Self {
372-
Self { power_levels: Some(power_levels), ..self }
371+
pub fn with_power_levels(self, power_levels: Option<PushConditionPowerLevelsCtx>) -> Self {
372+
Self { power_levels, ..self }
373373
}
374374
}
375375

0 commit comments

Comments
 (0)