From 67e778a8f8bca408affaf283051e62c73c7de14e Mon Sep 17 00:00:00 2001 From: maix0 Date: Sat, 28 Sep 2024 12:20:12 +0200 Subject: [PATCH] update: fixed warning --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 698af93..6f5fc57 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, tutors: Arc>>, key: Key, @@ -126,7 +126,7 @@ async fn main() { .unwrap(); let state = AppState { - http, + _http: http, key, oauth: Arc::new(oauth), tutors: Default::default(),