aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/notify.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mumd/src/notify.rs')
-rw-r--r--mumd/src/notify.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mumd/src/notify.rs b/mumd/src/notify.rs
index eaed3dc..ee387cc 100644
--- a/mumd/src/notify.rs
+++ b/mumd/src/notify.rs
@@ -1,9 +1,9 @@
pub fn init() {
- #[cfg(any(feature = "notifications", feature = "all"))]
+ #[cfg(feature = "notifications")]
libnotify::init("mumd").unwrap();
}
-#[cfg(any(feature = "notifications", feature = "all"))]
+#[cfg(feature = "notifications")]
pub fn send(msg: String) -> Option<bool> {
match libnotify::Notification::new("mumd", Some(msg.as_str()), None).show() {
Ok(_) => Some(true),
@@ -14,7 +14,7 @@ pub fn send(msg: String) -> Option<bool> {
}
}
-#[cfg(not(any(feature = "notifications", feature = "all")))]
+#[cfg(not(feature = "notifications"))]
pub fn send(_: String) -> Option<bool> {
None
}