update: fixed warning

This commit is contained in:
maix0 2024-09-28 12:20:12 +02:00
parent 180503a244
commit 67e778a8f8

View file

@ -20,7 +20,7 @@ use axum::{
};
use axum_extra::extract::{
cookie::{Cookie, Key, SameSite},
CookieJar, PrivateCookieJar,
PrivateCookieJar,
};
use base64::Engine;
use color_eyre::eyre::Context;
@ -28,7 +28,7 @@ use reqwest::tls::Version;
use serde::{Deserialize, Serialize};
use serde_json::json;
use tokio::sync::Mutex;
use tracing::{error, info, warn};
use tracing::{error, info};
macro_rules! unwrap_env {
($name:literal) => {
@ -40,7 +40,7 @@ mod oauth2;
#[derive(Clone)]
struct AppState {
http: reqwest::Client,
_http: reqwest::Client,
oauth: Arc<oauth2::OauthClient>,
tutors: Arc<Mutex<HashSet<u64>>>,
key: Key,
@ -126,7 +126,7 @@ async fn main() {
.unwrap();
let state = AppState {
http,
_http: http,
key,
oauth: Arc::new(oauth),
tutors: Default::default(),