From 42bf1196003c0b39179d8c9d2c07ecf9a83a4a74 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 7 Jan 2026 17:16:37 +0000 Subject: fix: resolve clippy warnings - Prefix unused variable auth_result with underscore - Prefix unused field git_data_path with underscore in Purgatory struct - Add #[allow(clippy::too_many_arguments)] to handle_receive_pack - Replace len() >= 1 with !is_empty() - Replace .last() with .next_back() on DoubleEndedIterator - Fix doc list item overindentation - Replace map_or(true, ...) with is_none_or(...) - Replace map_or(false, ...) with is_some_and(...) --- src/git/sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/git/sync.rs') diff --git a/src/git/sync.rs b/src/git/sync.rs index 949d8e1..2f43e6e 100644 --- a/src/git/sync.rs +++ b/src/git/sync.rs @@ -1310,7 +1310,7 @@ async fn process_purgatory_pr_events( fn extract_owner_from_repo_path(repo_path: &Path, git_data_path: &Path) -> Option { let relative = repo_path.strip_prefix(git_data_path).ok()?; let components: Vec<_> = relative.components().collect(); - if components.len() >= 1 { + if !components.is_empty() { components[0].as_os_str().to_str().map(|s| s.to_string()) } else { None -- cgit v1.2.3