Skip to content

Commit

Permalink
fix: appease clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Roy <[email protected]>
  • Loading branch information
roypat authored and ShadowCurse committed Jan 14, 2025
1 parent 8834825 commit f6e139f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/common/headers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ impl MediaType {

#[cfg(test)]
mod tests {
#![allow(missing_docs)]
use super::*;
use std::collections::HashMap;

Expand Down
4 changes: 2 additions & 2 deletions src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<T: Send> HttpRoutes<T> {
mod tests {
use super::*;

struct HandlerArg(bool);
struct HandlerArg;

struct MockHandler {}

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit f6e139f

Please sign in to comment.