From 9d86cf15f0275ffeee4519bd054e3b61dc8992ac Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 26 Feb 2026 15:42:09 +0000 Subject: chore: apply cargo fmt and fix clippy warnings Fix pre-existing clippy lints: - &PathBuf -> &Path in audit_cleanup.rs - too_many_arguments on process_newly_available_git_data, process_purgatory_announcements, and HttpService::new - clone_on_copy for PublicKey (Copy type) in purgatory cleanup loop --- src/git/sync.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/git/sync.rs') diff --git a/src/git/sync.rs b/src/git/sync.rs index 9a02ad4..05dcbda 100644 --- a/src/git/sync.rs +++ b/src/git/sync.rs @@ -814,6 +814,7 @@ pub fn extract_identifier_from_pr_event(event: &Event) -> Option { /// /// # Returns /// A `ProcessResult` describing what was processed +#[allow(clippy::too_many_arguments)] pub async fn process_newly_available_git_data( source_repo_path: &Path, new_oids: &HashSet, @@ -1339,6 +1340,7 @@ async fn process_purgatory_pr_events( /// When `write_policy` and `rejected_events_index` are provided (git push path), /// any maintainer announcements sitting in the hot cache are re-processed immediately /// after the owner announcement is promoted, so they don't wait for the next sync cycle. +#[allow(clippy::too_many_arguments)] async fn process_purgatory_announcements( identifier: &str, source_repo_path: &Path, -- cgit v1.2.3