fix: remove unused imports

This commit is contained in:
Radical 2025-05-07 21:22:38 +02:00
parent 3e64a49338
commit 9e56eec021
3 changed files with 3 additions and 5 deletions

View file

@ -1,7 +1,6 @@
use actix_web::{Error, HttpRequest, HttpResponse, get, web};
use log::error;
use serde::Serialize;
use tokio::sync::Mutex;
use uuid::Uuid;
use crate::{Data, api::v1::auth::check_access_token, utils::get_auth_header};

View file

@ -2,10 +2,9 @@ use actix_cors::Cors;
use actix_web::{App, HttpServer, web};
use argon2::Argon2;
use clap::Parser;
use redis::aio::MultiplexedConnection;
use simple_logger::SimpleLogger;
use sqlx::{PgPool, Pool, Postgres};
use std::{cell::Cell, time::SystemTime};
use std::time::SystemTime;
mod config;
use config::{Config, ConfigBuilder};
mod api;

View file

@ -1,7 +1,7 @@
use actix_web::{cookie::{time::Duration, Cookie, SameSite}, http::header::HeaderMap, HttpResponse};
use getrandom::fill;
use hex::encode;
use redis::{AsyncCommands, RedisError};
use redis::RedisError;
use serde::Serialize;
use serde_json::json;
@ -57,7 +57,7 @@ impl Data {
let key_encoded = encode(key);
let value_json = json!(value).to_string();
let value_json = json!(value).as_str().unwrap().to_string();
redis::cmd("SET",).arg(&[key_encoded.clone(), value_json]).exec_async(&mut conn).await?;