diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:42:09 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:42:09 +0000 |
| commit | 9d86cf15f0275ffeee4519bd054e3b61dc8992ac (patch) | |
| tree | 65b5d5ffb2a11b5ecd05d01e63fb5a4a0f8b6e06 /src/git/sync.rs | |
| parent | a2ecfc5a63311570f0f90c7ee40117e289639cb8 (diff) | |
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
Diffstat (limited to 'src/git/sync.rs')
| -rw-r--r-- | src/git/sync.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<String> { | |||
| 814 | /// | 814 | /// |
| 815 | /// # Returns | 815 | /// # Returns |
| 816 | /// A `ProcessResult` describing what was processed | 816 | /// A `ProcessResult` describing what was processed |
| 817 | #[allow(clippy::too_many_arguments)] | ||
| 817 | pub async fn process_newly_available_git_data( | 818 | pub async fn process_newly_available_git_data( |
| 818 | source_repo_path: &Path, | 819 | source_repo_path: &Path, |
| 819 | new_oids: &HashSet<String>, | 820 | new_oids: &HashSet<String>, |
| @@ -1339,6 +1340,7 @@ async fn process_purgatory_pr_events( | |||
| 1339 | /// When `write_policy` and `rejected_events_index` are provided (git push path), | 1340 | /// When `write_policy` and `rejected_events_index` are provided (git push path), |
| 1340 | /// any maintainer announcements sitting in the hot cache are re-processed immediately | 1341 | /// any maintainer announcements sitting in the hot cache are re-processed immediately |
| 1341 | /// after the owner announcement is promoted, so they don't wait for the next sync cycle. | 1342 | /// after the owner announcement is promoted, so they don't wait for the next sync cycle. |
| 1343 | #[allow(clippy::too_many_arguments)] | ||
| 1342 | async fn process_purgatory_announcements( | 1344 | async fn process_purgatory_announcements( |
| 1343 | identifier: &str, | 1345 | identifier: &str, |
| 1344 | source_repo_path: &Path, | 1346 | source_repo_path: &Path, |