fix(ci): clippy fixes
This commit is contained in:
@@ -214,7 +214,7 @@ pub async fn auth_callback(
|
|||||||
|
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
let token_resp = client
|
let token_resp = client
|
||||||
.post(&config.token_endpoint())
|
.post(config.token_endpoint())
|
||||||
.form(&[
|
.form(&[
|
||||||
("grant_type", "authorization_code"),
|
("grant_type", "authorization_code"),
|
||||||
("client_id", &config.client_id),
|
("client_id", &config.client_id),
|
||||||
@@ -237,7 +237,7 @@ pub async fn auth_callback(
|
|||||||
|
|
||||||
// --- Fetch userinfo ---
|
// --- Fetch userinfo ---
|
||||||
let userinfo: UserinfoResponse = client
|
let userinfo: UserinfoResponse = client
|
||||||
.get(&config.userinfo_endpoint())
|
.get(config.userinfo_endpoint())
|
||||||
.bearer_auth(&tokens.access_token)
|
.bearer_auth(&tokens.access_token)
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
use std::{
|
use std::{ops::Deref, sync::Arc};
|
||||||
ops::{Deref, DerefMut},
|
|
||||||
sync::Arc,
|
|
||||||
};
|
|
||||||
|
|
||||||
use axum::extract::FromRequestParts;
|
use axum::extract::FromRequestParts;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use tracing::debug;
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct UserState(Arc<UserStateInner>);
|
pub struct UserState(Arc<UserStateInner>);
|
||||||
|
|||||||
Reference in New Issue
Block a user