Clippy fixes

This commit is contained in:
xeovalyte 2025-02-24 16:20:27 +01:00
parent ea0a5a3ee2
commit 972f744e73
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:GWI1hq+MNKR2UOcvk7n9tekASXT8vyazK7vDF9Xyciw
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ use crate::{database::model::Session, model::User};
mod error;
pub async fn get_user_from_header(pool: &PgPool, headers: &HeaderMap) -> Result<User, AuthError> {
let token = get_token_from_headers(&headers)?;
let token = get_token_from_headers(headers)?;
let session = match Session::from_token(pool, &token).await {
Ok(s) => s,

View File

@ -1,5 +1,5 @@
use chrono::{DateTime, Utc};
use sqlx::{PgPool, Postgres, QueryBuilder};
use sqlx::Postgres;
use crate::model::{
member::{Groups, Roles},

View File

@ -1,7 +1,7 @@
use axum::{
extract::State,
http::HeaderMap,
routing::{get, post},
routing::post,
Json, Router,
};
use serde::Deserialize;