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/handlers.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/git/handlers.rs') diff --git a/src/git/handlers.rs b/src/git/handlers.rs index 6d2e2d7..ff55e34 100644 --- a/src/git/handlers.rs +++ b/src/git/handlers.rs @@ -181,6 +181,7 @@ pub async fn handle_upload_pack( /// * `identifier` - The repository identifier (d tag) for authorization lookup /// * `owner_pubkey` - The owner's public key (hex) from the URL path, scoping authorization /// * `git_data_path` - Base path for git repositories (for syncing to other owner repos) +#[allow(clippy::too_many_arguments)] pub async fn handle_receive_pack( repo_path: PathBuf, request_body: Bytes, @@ -204,7 +205,7 @@ pub async fn handle_receive_pack( ); // check push is authorised - let auth_result = match authorize_push( + let _auth_result = match authorize_push( &database, identifier, owner_pubkey, -- cgit v1.2.3