inline notify-rust [skip ci]

This commit is contained in:
Lucas Nogueira
2024-02-20 10:44:52 -03:00
parent df3fc7c251
commit 4709c343bc
23 changed files with 3750 additions and 19 deletions
+2 -2
View File
@@ -160,7 +160,7 @@ mod imp {
deprecated = "This function does not work on Windows 7. Use `Self::notify` instead."
)]
pub fn show(self) -> crate::Result<()> {
let mut notification = notify_rust::Notification::new();
let mut notification = crate::notify_rust::Notification::new();
if let Some(body) = self.body {
notification.body(&body);
}
@@ -186,7 +186,7 @@ mod imp {
}
#[cfg(target_os = "macos")]
{
let _ = notify_rust::set_application(if cfg!(feature = "custom-protocol") {
let _ = crate::notify_rust::set_application(if cfg!(feature = "custom-protocol") {
&self.identifier
} else {
"com.apple.Terminal"