From e0b0ae4bc86c70b61539c8c88a0b1ab8a5816ac3 Mon Sep 17 00:00:00 2001 From: Rahix Date: Thu, 5 Mar 2026 20:59:06 +0100 Subject: [PATCH] Clear all unused warnings --- src/context.rs | 3 ++- src/main.rs | 2 -- src/reminder.rs | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/context.rs b/src/context.rs index ff164c6..2ee3933 100644 --- a/src/context.rs +++ b/src/context.rs @@ -12,6 +12,7 @@ pub struct Context { /// URL of the repository page pub repo_url: url::Url, /// URL of the repository with authentication information attached + #[expect(unused)] pub repo_auth_url: url::Url, /// Timestamp "now" to be used in comparisons @@ -37,7 +38,7 @@ impl Context { } pub fn new_from_dev_fallback() -> anyhow::Result { - let mut f = std::fs::File::open(&dev_environment_path()?) + let f = std::fs::File::open(&dev_environment_path()?) .context("Failed to open dev environment config")?; let config: DevEnvironment = diff --git a/src/main.rs b/src/main.rs index 76e192c..219c28b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,3 @@ -#![allow(unused)] - mod collect; mod context; mod reminder; diff --git a/src/reminder.rs b/src/reminder.rs index 42be76d..8d102c1 100644 --- a/src/reminder.rs +++ b/src/reminder.rs @@ -1,5 +1,4 @@ use crate::task; -use crate::util; use anyhow::Context as _; @@ -76,7 +75,7 @@ async fn remind_task( reminder_type: ReminderType, batching_interval: BatchingInterval, ) -> anyhow::Result<()> { - let mut body = match (reminder_type, batching_interval) { + let body = match (reminder_type, batching_interval) { (ReminderType::Basic, BatchingInterval::Monthly) => format!( "\ Beep boop. This task is due this month, go take care of it!"