From 7db0275ae7d95567270478587d4a728f97502714 Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Mon, 31 Jul 2023 13:14:11 +0200 Subject: [PATCH] Remove referencing the reference --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index 59432ab7..01b64d2d 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -222,7 +222,7 @@ pub fn http_status_code_for_service_error(error: &ServiceError) -> StatusCode { ServiceError::InvalidTorrentFile => StatusCode::BAD_REQUEST, ServiceError::InvalidTorrentPiecesLength => StatusCode::BAD_REQUEST, ServiceError::InvalidFileType => StatusCode::BAD_REQUEST, - &ServiceError::InvalidTorrentTitleLength => StatusCode::BAD_REQUEST, + ServiceError::InvalidTorrentTitleLength => StatusCode::BAD_REQUEST, ServiceError::BadRequest => StatusCode::BAD_REQUEST, ServiceError::InvalidCategory => StatusCode::BAD_REQUEST, ServiceError::InvalidTag => StatusCode::BAD_REQUEST,