diff --git a/src/router.rs b/src/router.rs index c220127..1901ce4 100644 --- a/src/router.rs +++ b/src/router.rs @@ -6,7 +6,7 @@ use argon2::{ }; use axum::{ http::StatusCode, - response::{Html, IntoResponse, Response}, + response::{Html, IntoResponse}, routing::get, Form, Router, }; @@ -90,7 +90,7 @@ async fn register( let argon2 = Argon2::default(); let password_digest = argon2.hash_password(register.password.as_bytes(), &salt)?; - let new_user = NewUser { + let _new_user = NewUser { username: ®ister.username, name: None, password_digest: password_digest.to_string().as_bytes(),