Skip to content

Commit

Permalink
cargo clippy --tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Feb 15, 2024
1 parent e7e8264 commit 93c6e90
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fastn-core/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -965,13 +965,9 @@ mod test {
user.email.as_str(),
user.name.as_str(),
)) {
let res = fastn_core::http::validation_error_to_user_err(
e,
fastn_core::http::StatusCode::BAD_REQUEST,
)
.unwrap();
let res = fastn_core::http::validation_error_to_user_err(e).unwrap();

assert_eq!(res.status(), fastn_core::http::StatusCode::BAD_REQUEST);
assert_eq!(res.status(), fastn_core::http::StatusCode::OK);

#[derive(serde::Deserialize, Debug)]
struct Errors {
Expand Down

0 comments on commit 93c6e90

Please sign in to comment.