diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-08-30 01:57:49 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-08-30 01:57:49 -0400 |
| commit | 342d4720576369f83d88b0dbde6ca5d58aebd252 (patch) | |
| tree | 5de73ac23e13e7b1ed5d1cbcba717fbc07689fee | |
| parent | 8712c3a19c279d664ce75e8e90d6dde1bda56cb4 (diff) | |
Automatically reorder imports to my preferred style.
| -rw-r--r-- | rustfmt.toml | 1 | ||||
| -rw-r--r-- | src/app.rs | 5 | ||||
| -rw-r--r-- | src/login/mod.rs | 3 | ||||
| -rw-r--r-- | src/main.rs | 1 | ||||
| -rw-r--r-- | src/message/snapshot.rs | 3 | ||||
| -rw-r--r-- | src/setup/required.rs | 9 | ||||
| -rw-r--r-- | src/token/extract/identity.rs | 1 |
7 files changed, 12 insertions, 11 deletions
diff --git a/rustfmt.toml b/rustfmt.toml index 26527d9..0a2eec8 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -3,3 +3,4 @@ # # Yes, this is why the `check-format` and `reformat` tools use `+nightly`. imports_granularity = "crate" +group_imports = "StdExternalCrate" @@ -1,5 +1,7 @@ use sqlx::sqlite::SqlitePool; +#[cfg(test)] +use crate::user::app::Users; use crate::{ boot::app::Boot, conversation::app::Conversations, @@ -11,9 +13,6 @@ use crate::{ token::{self, app::Tokens}, }; -#[cfg(test)] -use crate::user::app::Users; - #[derive(Clone)] pub struct App { db: SqlitePool, diff --git a/src/login/mod.rs b/src/login/mod.rs index bccc2af..379300e 100644 --- a/src/login/mod.rs +++ b/src/login/mod.rs @@ -3,9 +3,10 @@ pub mod handlers; mod id; pub mod repo; -use crate::name::Name; pub use id::Id; +use crate::name::Name; + #[derive(Clone, Debug, Eq, PartialEq, serde::Serialize)] pub struct Login { pub id: Id, diff --git a/src/main.rs b/src/main.rs index b8981d0..f140da1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,4 @@ use clap::Parser; - use pilcrow::cli; #[tokio::main] diff --git a/src/message/snapshot.rs b/src/message/snapshot.rs index 19a98a3..dc863c9 100644 --- a/src/message/snapshot.rs +++ b/src/message/snapshot.rs @@ -1,9 +1,10 @@ +use serde_with::with_prefix; + use super::{ Body, Id, event::{Event, Sent}, }; use crate::{conversation, event::Instant, user}; -use serde_with::with_prefix; #[derive(Clone, Debug, Eq, PartialEq, serde::Serialize)] pub struct Message { diff --git a/src/setup/required.rs b/src/setup/required.rs index 7276827..a2aed18 100644 --- a/src/setup/required.rs +++ b/src/setup/required.rs @@ -1,12 +1,13 @@ +use std::{ + pin::Pin, + task::{Context, Poll}, +}; + use axum::{ extract::Request, http::StatusCode, response::{IntoResponse, Response}, }; -use std::{ - pin::Pin, - task::{Context, Poll}, -}; use tower::{Layer, Service}; use crate::{app::App, error::Internal}; diff --git a/src/token/extract/identity.rs b/src/token/extract/identity.rs index 960fe60..bee4e31 100644 --- a/src/token/extract/identity.rs +++ b/src/token/extract/identity.rs @@ -5,7 +5,6 @@ use axum::{ }; use super::IdentityCookie; - use crate::{ app::App, clock::RequestedAt, |
