diff options
Diffstat (limited to 'mumd/src/notify.rs')
| -rw-r--r-- | mumd/src/notify.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mumd/src/notify.rs b/mumd/src/notify.rs index 5bb1a26..82ec6b6 100644 --- a/mumd/src/notify.rs +++ b/mumd/src/notify.rs @@ -5,12 +5,8 @@ pub fn init() { } pub fn send(msg: String) -> bool { - match libnotify::Notification::new( - "mumd", - Some(msg.as_str()), - None, - ).show() { - Ok(_) => { true } + match libnotify::Notification::new("mumd", Some(msg.as_str()), None).show() { + Ok(_) => true, Err(_) => { debug!("Unable to send notification"); false |
