fix: remove ipc import on non-unix systems

This commit is contained in:
Thomas Frans
2023-05-27 19:17:06 +02:00
committed by Henrik Friedrichsen
parent c36d3cf272
commit 0c97bd36c3
2 changed files with 10 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ use std::sync::{Arc, RwLock};
use log::{debug, info};
#[cfg(feature = "notify")]
use notify_rust::{Hint, Notification, Urgency};
use notify_rust::Notification;
use rand::prelude::*;
use strum_macros::Display;
@@ -511,9 +511,9 @@ pub fn send_notification(summary_txt: &str, body_txt: &str, cover_url: Option<St
// XDG desktop entry hints
#[cfg(all(unix, not(target_os = "macos")))]
n.urgency(Urgency::Low)
.hint(Hint::Transient(true))
.hint(Hint::DesktopEntry("ncspot".into()));
n.urgency(notify_rust::Urgency::Low)
.hint(notify_rust::Hint::Transient(true))
.hint(notify_rust::Hint::DesktopEntry("ncspot".into()));
match n.show() {
Ok(handle) => {