Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kenken714 committed Nov 9, 2024
1 parent eb65f94 commit e490f8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mod users;
mod users;
3 changes: 1 addition & 2 deletions tests/users/get_users.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
use std::borrow::BorrowMut;

use super::common::check::users_check_by_id;
use axum::{
body::Body,
http::{self, Request},
};
use super::common::check::users_check_by_id;
use http_body_util::BodyExt;
use serde_json::Value;
use tower::ServiceExt;
use trao_judge_backend::{make_router, Repository};


#[sqlx::test(fixtures("common"))]
async fn get_user_by_id(pool: sqlx::MySqlPool) -> anyhow::Result<()> {
let state = Repository::create_by_pool(pool).await?;
Expand Down
2 changes: 1 addition & 1 deletion tests/users/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod common;

mod get_users;
mod put_users;
mod put_users;
4 changes: 2 additions & 2 deletions tests/users/put_users.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::borrow::BorrowMut;

use super::common::RequestBuilderExt;
use axum::{
body::Body,
http::{self, Request},
};
use super::common::RequestBuilderExt;
use http_body_util::BodyExt;
use serde_json::{json, Value};
use tower::ServiceExt;
Expand Down Expand Up @@ -150,4 +150,4 @@ async fn put_user_me_invalid(pool: sqlx::MySqlPool) -> anyhow::Result<()> {
}

Ok(())
}
}

0 comments on commit e490f8c

Please sign in to comment.