From e868891d26855d96f67bb4b786d408311ffd0082 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 5 Dec 2024 02:05:45 +0100 Subject: [PATCH] style: format Rust source code --- examples/playground.rs | 2 +- src/bin/main.rs | 2 +- src/bin/tool.rs | 2 +- tests/models/users.rs | 4 ++-- tests/requests/auth.rs | 2 +- tests/requests/prepare_data.rs | 2 +- tests/tasks/seed.rs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/playground.rs b/examples/playground.rs index f0583bc..3ad2c14 100644 --- a/examples/playground.rs +++ b/examples/playground.rs @@ -1,6 +1,6 @@ +use daily_aujourdhui::app::App; #[allow(unused_imports)] use loco_rs::{cli::playground, prelude::*}; -use daily_aujourdhui::app::App; #[tokio::main] async fn main() -> loco_rs::Result<()> { diff --git a/src/bin/main.rs b/src/bin/main.rs index 372c09f..b51ec00 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -1,5 +1,5 @@ -use loco_rs::cli; use daily_aujourdhui::app::App; +use loco_rs::cli; use migration::Migrator; #[tokio::main] diff --git a/src/bin/tool.rs b/src/bin/tool.rs index 372c09f..b51ec00 100644 --- a/src/bin/tool.rs +++ b/src/bin/tool.rs @@ -1,5 +1,5 @@ -use loco_rs::cli; use daily_aujourdhui::app::App; +use loco_rs::cli; use migration::Migrator; #[tokio::main] diff --git a/tests/models/users.rs b/tests/models/users.rs index d7110b3..c44ba40 100644 --- a/tests/models/users.rs +++ b/tests/models/users.rs @@ -1,9 +1,9 @@ -use insta::assert_debug_snapshot; -use loco_rs::{model::ModelError, testing}; use daily_aujourdhui::{ app::App, models::users::{self, Model, RegisterParams}, }; +use insta::assert_debug_snapshot; +use loco_rs::{model::ModelError, testing}; use sea_orm::{ActiveModelTrait, ActiveValue, IntoActiveModel}; use serial_test::serial; diff --git a/tests/requests/auth.rs b/tests/requests/auth.rs index 22fb722..dc4a94e 100644 --- a/tests/requests/auth.rs +++ b/tests/requests/auth.rs @@ -1,6 +1,6 @@ +use daily_aujourdhui::{app::App, models::users}; use insta::{assert_debug_snapshot, with_settings}; use loco_rs::testing; -use daily_aujourdhui::{app::App, models::users}; use rstest::rstest; use serial_test::serial; diff --git a/tests/requests/prepare_data.rs b/tests/requests/prepare_data.rs index 638ea0d..6adebb9 100644 --- a/tests/requests/prepare_data.rs +++ b/tests/requests/prepare_data.rs @@ -1,6 +1,6 @@ use axum::http::{HeaderName, HeaderValue}; -use loco_rs::{app::AppContext, TestServer}; use daily_aujourdhui::{models::users, views::auth::LoginResponse}; +use loco_rs::{app::AppContext, TestServer}; const USER_EMAIL: &str = "test@loco.com"; const USER_PASSWORD: &str = "1234"; diff --git a/tests/tasks/seed.rs b/tests/tasks/seed.rs index ae79784..34d8603 100644 --- a/tests/tasks/seed.rs +++ b/tests/tasks/seed.rs @@ -1,5 +1,5 @@ -use loco_rs::{boot::run_task, task, testing}; use daily_aujourdhui::app::App; +use loco_rs::{boot::run_task, task, testing}; use serial_test::serial; #[tokio::test]