File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,7 @@ impl MediaType {
431
431
432
432
#[ cfg( test) ]
433
433
mod tests {
434
+ #![ allow( missing_docs) ]
434
435
use super :: * ;
435
436
use std:: collections:: HashMap ;
436
437
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ impl<T: Send> HttpRoutes<T> {
106
106
mod tests {
107
107
use super :: * ;
108
108
109
- struct HandlerArg ( bool ) ;
109
+ struct HandlerArg ;
110
110
111
111
struct MockHandler { }
112
112
@@ -149,7 +149,7 @@ mod tests {
149
149
150
150
let request =
151
151
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 ;
153
153
let reply = router. handle_http_request ( & request, & arg) ;
154
154
assert_eq ! ( reply. status( ) , StatusCode :: NotFound ) ;
155
155
}
You can’t perform that action at this time.
0 commit comments