upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/sync.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-07 17:16:37 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-07 17:16:37 +0000
commit42bf1196003c0b39179d8c9d2c07ecf9a83a4a74 (patch)
treed276dc3ac0e904f595d7ce88c30751112439311c /src/git/sync.rs
parentb71111cc25b99acab786ece4607cb60e9cbebae4 (diff)
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(...)
Diffstat (limited to 'src/git/sync.rs')
-rw-r--r--src/git/sync.rs2
1 files changed, 1 insertions, 1 deletions
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(
1310fn extract_owner_from_repo_path(repo_path: &Path, git_data_path: &Path) -> Option<String> { 1310fn extract_owner_from_repo_path(repo_path: &Path, git_data_path: &Path) -> Option<String> {
1311 let relative = repo_path.strip_prefix(git_data_path).ok()?; 1311 let relative = repo_path.strip_prefix(git_data_path).ok()?;
1312 let components: Vec<_> = relative.components().collect(); 1312 let components: Vec<_> = relative.components().collect();
1313 if components.len() >= 1 { 1313 if !components.is_empty() {
1314 components[0].as_os_str().to_str().map(|s| s.to_string()) 1314 components[0].as_os_str().to_str().map(|s| s.to_string())
1315 } else { 1315 } else {
1316 None 1316 None