Skip to content

Commit f6e139f

Browse files
roypatShadowCurse
authored andcommitted
fix: appease clippy
Signed-off-by: Patrick Roy <[email protected]>
1 parent 8834825 commit f6e139f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/common/headers.rs

+1
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ impl MediaType {
431431

432432
#[cfg(test)]
433433
mod tests {
434+
#![allow(missing_docs)]
434435
use super::*;
435436
use std::collections::HashMap;
436437

src/router.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<T: Send> HttpRoutes<T> {
106106
mod tests {
107107
use super::*;
108108

109-
struct HandlerArg(bool);
109+
struct HandlerArg;
110110

111111
struct MockHandler {}
112112

@@ -149,7 +149,7 @@ mod tests {
149149

150150
let request =
151151
Request::try_from(b"GET http://localhost/api/v1/func2 HTTP/1.1\r\n\r\n", None).unwrap();
152-
let arg = HandlerArg(true);
152+
let arg = HandlerArg;
153153
let reply = router.handle_http_request(&request, &arg);
154154
assert_eq!(reply.status(), StatusCode::NotFound);
155155
}

0 commit comments

Comments
 (0)