From 46232b42545e751f818d827f00cf68060b2cb94c Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Thu, 18 May 2023 12:15:37 -0700 Subject: [PATCH] minor cleanup --- src/lib.rs | 2 -- src/users.rs | 7 +++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b8bd189..f97526d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,5 +5,3 @@ pub mod db; pub mod handlers; pub(crate) mod templates; pub mod users; - -//pub type Db: axum:: diff --git a/src/users.rs b/src/users.rs index d392081..089c615 100644 --- a/src/users.rs +++ b/src/users.rs @@ -2,13 +2,12 @@ use argon2::{ password_hash::{rand_core::OsRng, PasswordHash, PasswordHasher, PasswordVerifier, SaltString}, Argon2, }; -use askama::Template; use axum::{ - extract::{Form, Path, State}, + extract::{Form, State}, http::StatusCode, response::IntoResponse, }; -use sqlx::{error::DatabaseError, Sqlite, SqlitePool}; +use sqlx::SqlitePool; use tracing::log::log; use unicode_segmentation::UnicodeSegmentation; use uuid::Uuid; @@ -52,7 +51,7 @@ pub async fn get_create_user() -> CreateUser { #[axum::debug_handler] pub async fn post_create_user( - State(pool): State>, + State(pool): State, Form(signup): Form, ) -> Result<(), CreateUserError> { let username = &signup.username;