fix: appease clippy

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
This commit is contained in:
Patrick Roy
2025-01-14 12:03:13 +00:00
committed by ShadowCurse
parent 88348257d1
commit f6e139f591
2 changed files with 3 additions and 2 deletions

View File

@@ -431,6 +431,7 @@ impl MediaType {
#[cfg(test)]
mod tests {
#![allow(missing_docs)]
use super::*;
use std::collections::HashMap;

View File

@@ -106,7 +106,7 @@ impl<T: Send> HttpRoutes<T> {
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);
}