From 4010e0f5abb28bae3207c78dba74f0896eedea51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Thu, 29 Oct 2020 21:28:12 +0100 Subject: cargo fmt --- mumd/src/notify.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mumd/src/notify.rs') 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 -- cgit v1.2.1