aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/notify.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-10-29 21:28:12 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-10-29 21:28:12 +0100
commit4010e0f5abb28bae3207c78dba74f0896eedea51 (patch)
tree2e1c215705d04f86e47a1a0a9015dfd6ed6feeaf /mumd/src/notify.rs
parent3e7e375e65760a03b6692106ab0ed806ca65e470 (diff)
downloadmum-4010e0f5abb28bae3207c78dba74f0896eedea51.tar.gz
cargo fmt
Diffstat (limited to 'mumd/src/notify.rs')
-rw-r--r--mumd/src/notify.rs8
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