update: fixed warning
This commit is contained in:
parent
180503a244
commit
67e778a8f8
1 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ use axum::{
|
||||||
};
|
};
|
||||||
use axum_extra::extract::{
|
use axum_extra::extract::{
|
||||||
cookie::{Cookie, Key, SameSite},
|
cookie::{Cookie, Key, SameSite},
|
||||||
CookieJar, PrivateCookieJar,
|
PrivateCookieJar,
|
||||||
};
|
};
|
||||||
use base64::Engine;
|
use base64::Engine;
|
||||||
use color_eyre::eyre::Context;
|
use color_eyre::eyre::Context;
|
||||||
|
|
@ -28,7 +28,7 @@ use reqwest::tls::Version;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
use tokio::sync::Mutex;
|
use tokio::sync::Mutex;
|
||||||
use tracing::{error, info, warn};
|
use tracing::{error, info};
|
||||||
|
|
||||||
macro_rules! unwrap_env {
|
macro_rules! unwrap_env {
|
||||||
($name:literal) => {
|
($name:literal) => {
|
||||||
|
|
@ -40,7 +40,7 @@ mod oauth2;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct AppState {
|
struct AppState {
|
||||||
http: reqwest::Client,
|
_http: reqwest::Client,
|
||||||
oauth: Arc<oauth2::OauthClient>,
|
oauth: Arc<oauth2::OauthClient>,
|
||||||
tutors: Arc<Mutex<HashSet<u64>>>,
|
tutors: Arc<Mutex<HashSet<u64>>>,
|
||||||
key: Key,
|
key: Key,
|
||||||
|
|
@ -126,7 +126,7 @@ async fn main() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let state = AppState {
|
let state = AppState {
|
||||||
http,
|
_http: http,
|
||||||
key,
|
key,
|
||||||
oauth: Arc::new(oauth),
|
oauth: Arc::new(oauth),
|
||||||
tutors: Default::default(),
|
tutors: Default::default(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue