From 3c5bff02374fed9d9762f9ab3a5385c7eb87d5b5 Mon Sep 17 00:00:00 2001 From: DenebTM Date: Sat, 10 Feb 2024 12:11:36 +0100 Subject: [PATCH] trait bound --- src/auth.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } }