summaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
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]