diff --git a/src/auth.rs b/src/auth.rs index da3fac3..a16cc27 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -5,7 +5,7 @@ use std::sync::Arc; use tokio::sync::Mutex; use tracing::instrument; -use crate::db::SqliteDatabase; +use crate::db::{Database, SqliteDatabase}; #[derive(Debug, Clone, Deserialize)] pub struct Password(pub SecretString); @@ -13,11 +13,11 @@ pub struct Password(pub SecretString); pub struct UserToken(pub SecretString); #[derive(Debug)] -pub struct Authenticator { - db: Arc>, +pub struct Authenticator { + db: Arc>, } -impl Authenticator { +impl Authenticator { pub fn new(db: Arc>) -> Self { Self { db } }