From f6e139f5912ba8e4d192adfcdd8132b38423c327 Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Tue, 14 Jan 2025 12:03:13 +0000 Subject: [PATCH] fix: appease clippy Signed-off-by: Patrick Roy --- src/common/headers.rs | 1 + src/router.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/headers.rs b/src/common/headers.rs index 9306951..6217a48 100644 --- a/src/common/headers.rs +++ b/src/common/headers.rs @@ -431,6 +431,7 @@ impl MediaType { #[cfg(test)] mod tests { + #![allow(missing_docs)] use super::*; use std::collections::HashMap; diff --git a/src/router.rs b/src/router.rs index a2171c3..da0a6ae 100644 --- a/src/router.rs +++ b/src/router.rs @@ -106,7 +106,7 @@ impl HttpRoutes { mod tests { use super::*; - struct HandlerArg(bool); + struct HandlerArg; struct MockHandler {} @@ -149,7 +149,7 @@ mod tests { let request = Request::try_from(b"GET http://localhost/api/v1/func2 HTTP/1.1\r\n\r\n", None).unwrap(); - let arg = HandlerArg(true); + let arg = HandlerArg; let reply = router.handle_http_request(&request, &arg); assert_eq!(reply.status(), StatusCode::NotFound); }