summaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-01-30 23:39:40 -0600
committerLibravatar bigfoot547 <[email protected]>2025-01-30 23:39:40 -0600
commit58b85cd77338bfc5a35fa39e10598cadb27eee32 (patch)
tree504f2ce93ff4ef3129b757018a3d9b47f257328b /src/auth.rs
parentremove dead oauth code (diff)
Remove some unused imports but not all of them
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 034f39d..1eb65ed 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -5,11 +5,10 @@ mod mcservices;
use std::error::Error;
use std::fmt::{Display, Formatter};
use std::future::Future;
-use std::ops::Add;
-use std::time::{Duration, Instant, SystemTime};
-use chrono::{DateTime, NaiveDateTime, TimeDelta, Utc};
+use std::time::{Duration, SystemTime};
+use chrono::{DateTime, TimeDelta, Utc};
use log::debug;
-use oauth2::{AccessToken, AuthType, AuthUrl, ClientId, DeviceAuthorizationResponse, DeviceAuthorizationUrl, DeviceCodeErrorResponse, EmptyExtraDeviceAuthorizationFields, EndpointNotSet, EndpointSet, HttpClientError, RefreshToken, RequestTokenError, Scope, StandardDeviceAuthorizationResponse, StandardRevocableToken, StandardTokenResponse, TokenResponse, TokenUrl};
+use oauth2::{AccessToken, DeviceAuthorizationUrl, DeviceCodeErrorResponse, EmptyExtraDeviceAuthorizationFields, EndpointNotSet, EndpointSet, HttpClientError, RefreshToken, RequestTokenError, Scope, StandardDeviceAuthorizationResponse, StandardRevocableToken, StandardTokenResponse, TokenResponse, TokenUrl};
use oauth2::basic::{BasicErrorResponse, BasicErrorResponseType, BasicRevocationErrorResponse, BasicTokenIntrospectionResponse, BasicTokenResponse};
use reqwest::{IntoUrl, Method, RequestBuilder};
pub use types::*;
@@ -285,7 +284,6 @@ impl MsaUser {
#[cfg(test)]
mod test {
- use reqwest::Client;
use super::*;
#[tokio::test]