We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8834825 commit f6e139fCopy full SHA for f6e139f
src/common/headers.rs
@@ -431,6 +431,7 @@ impl MediaType {
431
432
#[cfg(test)]
433
mod tests {
434
+ #![allow(missing_docs)]
435
use super::*;
436
use std::collections::HashMap;
437
src/router.rs
@@ -106,7 +106,7 @@ impl<T: Send> HttpRoutes<T> {
106
107
108
109
- struct HandlerArg(bool);
+ struct HandlerArg;
110
111
struct MockHandler {}
112
@@ -149,7 +149,7 @@ mod tests {
149
150
let request =
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);
+ let arg = HandlerArg;
153
let reply = router.handle_http_request(&request, &arg);
154
assert_eq!(reply.status(), StatusCode::NotFound);
155
}
0 commit comments