From 59fd881521d3994840306a4be2d7bdf879480388 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 8 Jun 2023 11:35:39 +0200 Subject: [PATCH] Fix unused warnings under certain cfg --- crates/ruma-common/src/power_levels.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruma-common/src/power_levels.rs b/crates/ruma-common/src/power_levels.rs index 5158d70c..608f77c3 100644 --- a/crates/ruma-common/src/power_levels.rs +++ b/crates/ruma-common/src/power_levels.rs @@ -31,6 +31,7 @@ impl NotificationPowerLevels { } } + #[cfg(feature = "events")] pub(crate) fn is_default(&self) -> bool { self.room == default_power_level() }