Clippy fixes
This commit is contained in:
parent
ea0a5a3ee2
commit
972f744e73
@ -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,
|
||||
|
@ -1,5 +1,5 @@
|
||||
use chrono::{DateTime, Utc};
|
||||
use sqlx::{PgPool, Postgres, QueryBuilder};
|
||||
use sqlx::Postgres;
|
||||
|
||||
use crate::model::{
|
||||
member::{Groups, Roles},
|
||||
|
@ -1,7 +1,7 @@
|
||||
use axum::{
|
||||
extract::State,
|
||||
http::HeaderMap,
|
||||
routing::{get, post},
|
||||
routing::post,
|
||||
Json, Router,
|
||||
};
|
||||
use serde::Deserialize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user