diff options
| author | 2025-01-30 23:39:40 -0600 | |
|---|---|---|
| committer | 2025-01-30 23:39:40 -0600 | |
| commit | 58b85cd77338bfc5a35fa39e10598cadb27eee32 (patch) | |
| tree | 504f2ce93ff4ef3129b757018a3d9b47f257328b /src/auth | |
| parent | remove dead oauth code (diff) | |
Remove some unused imports but not all of them
Diffstat (limited to 'src/auth')
| -rw-r--r-- | src/auth/msa.rs | 7 | ||||
| -rw-r--r-- | src/auth/types.rs | 5 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/auth/msa.rs b/src/auth/msa.rs index 6c90790..47e088b 100644 --- a/src/auth/msa.rs +++ b/src/auth/msa.rs @@ -1,16 +1,13 @@ use std::borrow::Cow; use std::collections::HashMap; -use std::ops::Add; -use std::time::{Duration, SystemTime}; -use chrono::{DateTime, TimeDelta, Utc}; +use chrono::{DateTime, Utc}; use log::debug; use oauth2::AccessToken; -use reqwest::{IntoUrl, Method, RequestBuilder}; +use reqwest::{Method}; use serde::{Deserialize, Serialize}; use uuid::Uuid; use crate::auth::AuthError; use crate::auth::types::Token; -use crate::util::USER_AGENT; const XBOX_LIVE_AUTH: &str = "https://user.auth.xboxlive.com/user/authenticate"; const XBOX_LIVE_XSTS: &str = "https://xsts.auth.xboxlive.com/xsts/authorize"; diff --git a/src/auth/types.rs b/src/auth/types.rs index c7a9ac9..348bdf8 100644 --- a/src/auth/types.rs +++ b/src/auth/types.rs @@ -1,12 +1,11 @@ pub mod property_map;
pub use property_map::PropertyMap;
-use std::fmt::{Debug, Formatter, Write};
+use std::fmt::{Debug, Formatter};
use chrono::{DateTime, Utc};
use multimap::MultiMap;
use oauth2::RefreshToken;
-use serde::{Deserialize, Deserializer, Serialize};
-use serde::de::{Error, SeqAccess, Visitor};
+use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Debug, Serialize, Deserialize)]
|
