From 0531aa0e3a9120745a0aa61169464943ad4202de Mon Sep 17 00:00:00 2001 From: Simon Fondrie-Teitler Date: Wed, 6 Aug 2025 13:08:08 -0400 Subject: [PATCH] Require rust 1.88 so we can use let chains --- daemon/Cargo.toml | 1 + daemon/src/notifications.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/daemon/Cargo.toml b/daemon/Cargo.toml index 6b11084..979f943 100644 --- a/daemon/Cargo.toml +++ b/daemon/Cargo.toml @@ -2,6 +2,7 @@ name = "rayhunter-daemon" version = "0.5.1" edition = "2024" +rust-version = "1.88" [dependencies] rayhunter = { path = "../lib" } diff --git a/daemon/src/notifications.rs b/daemon/src/notifications.rs index 8b1b05c..b3c801c 100644 --- a/daemon/src/notifications.rs +++ b/daemon/src/notifications.rs @@ -54,9 +54,9 @@ pub fn run_notification_worker( mut notification_service: NotificationService, ) { task_tracker.spawn(async move { - let channel_name = notification_service.channel_name.unwrap_or("".into()); - - if !channel_name.is_empty() { + if let Some(url) = notification_service.url + && !url.is_empty() + { let mut notification_statuses = HashMap::new(); let http_client = reqwest::Client::new();