Require rust 1.88 so we can use let chains

This commit is contained in:
Simon Fondrie-Teitler
2025-08-06 13:08:08 -04:00
parent dd78f5007d
commit 0531aa0e3a
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@
name = "rayhunter-daemon"
version = "0.5.1"
edition = "2024"
rust-version = "1.88"
[dependencies]
rayhunter = { path = "../lib" }
+3 -3
View File
@@ -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();