From be9c65fe487e74fc4fbe111b309acb7bb3393036 Mon Sep 17 00:00:00 2001 From: Franklin Date: Sat, 23 Sep 2023 18:40:04 -0400 Subject: [PATCH] Removed warnings --- src/service/user.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/service/user.rs b/src/service/user.rs index 130aa50..7853a55 100644 --- a/src/service/user.rs +++ b/src/service/user.rs @@ -1,7 +1,7 @@ -use std::future::Future; + use chrono::Utc; use log::{debug, error}; -use sqlx::{Error, PgConnection, Postgres, Transaction}; +use sqlx::{PgConnection, Postgres, Transaction}; use crate::dao::credential::{fetch_user_credentials, get_credential, insert_credential}; use crate::dao::token::{insert_token, update_token, validate_user_token}; use crate::dao::user::{get_user_with_id, insert_user, update_user}; @@ -138,7 +138,7 @@ pub async fn authenticate_user<'a>(conn: &mut PgConnection, user: AuthenticateUs /// pub async fn refresh_auth_token<'a>(conn: &mut PgConnection, user: RefreshAuthTokenForUserDto) -> Result> { let mut error_resources = Vec::new(); - let persisted_user = match get_user_with_id(conn, &user.id).await { + let _persisted_user = match get_user_with_id(conn, &user.id).await { Ok(persisted_user_opt) => match persisted_user_opt { None => { error_resources.push(ERROR_USER_DOES_NOT_EXIST);