Fix unused warnings under certain cfg

This commit is contained in:
Jonas Platte 2023-06-08 11:35:39 +02:00
parent 82bfb2e4d2
commit 59fd881521
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -31,6 +31,7 @@ impl NotificationPowerLevels {
}
}
#[cfg(feature = "events")]
pub(crate) fn is_default(&self) -> bool {
self.room == default_power_level()
}