From b8905bf2fcc3c743d8f9bebd3579928e7e91766c Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 29 Apr 2024 18:15:16 +0200 Subject: Fix Clippy issues --- server/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src') diff --git a/server/src/main.rs b/server/src/main.rs index 514be39..7371c0d 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -765,7 +765,7 @@ fn authorize_batch( if !verify_claims(conf, &claims, headers)? { return authorize_batch_unauthenticated(conf, public, operation, headers); } - return Ok(Trusted(true)); + Ok(Trusted(true)) } fn authorize_batch_unauthenticated( @@ -785,10 +785,10 @@ fn authorize_batch_unauthenticated( if !trusted { return Err(REPO_NOT_FOUND); } - return Err(make_error_resp( + Err(make_error_resp( StatusCode::FORBIDDEN, "Authentication required to upload", - )); + )) } common::Operation::Download => { // Again, trusted users can see all repos. For untrusted users, we first need to check @@ -800,7 +800,7 @@ fn authorize_batch_unauthenticated( } return Ok(Trusted(false)); } - return Ok(Trusted(true)); + Ok(Trusted(true)) } } } -- cgit v1.2.3