aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-10-26 05:29:26 +0000
committermat <git@matdoes.dev>2024-10-26 05:29:26 +0000
commit6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f (patch)
tree3b65d2984a0cffbe5acb3d44d7e3b8b145c32f95 /azalea-auth
parentb762575db61cf775d603e11eb2bd27ae13bdc4e9 (diff)
downloadazalea-drasl-6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f.tar.xz
group imports with rustfmt
Diffstat (limited to 'azalea-auth')
-rwxr-xr-xazalea-auth/src/auth.rs10
-rwxr-xr-xazalea-auth/src/cache.rs3
-rwxr-xr-xazalea-auth/src/game_profile.rs3
3 files changed, 10 insertions, 6 deletions
diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs
index 667c9062..e70be27d 100755
--- a/azalea-auth/src/auth.rs
+++ b/azalea-auth/src/auth.rs
@@ -1,18 +1,20 @@
//! Handle Minecraft (Xbox) authentication.
-use crate::cache::{self, CachedAccount, ExpiringValue};
-use chrono::{DateTime, Utc};
-use serde::{Deserialize, Serialize};
-use serde_json::json;
use std::{
collections::HashMap,
path::PathBuf,
time::{Instant, SystemTime, UNIX_EPOCH},
};
+
+use chrono::{DateTime, Utc};
+use serde::{Deserialize, Serialize};
+use serde_json::json;
use thiserror::Error;
use tracing::{error, trace};
use uuid::Uuid;
+use crate::cache::{self, CachedAccount, ExpiringValue};
+
#[derive(Default)]
pub struct AuthOpts<'a> {
/// Whether we should check if the user actually owns the game. This will
diff --git a/azalea-auth/src/cache.rs b/azalea-auth/src/cache.rs
index 210dbab6..ca32958f 100755
--- a/azalea-auth/src/cache.rs
+++ b/azalea-auth/src/cache.rs
@@ -1,8 +1,9 @@
//! Cache auth information
-use serde::{Deserialize, Serialize};
use std::path::Path;
use std::time::{SystemTime, UNIX_EPOCH};
+
+use serde::{Deserialize, Serialize};
use thiserror::Error;
use tokio::fs::File;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
diff --git a/azalea-auth/src/game_profile.rs b/azalea-auth/src/game_profile.rs
index 6a34a87b..31650754 100755
--- a/azalea-auth/src/game_profile.rs
+++ b/azalea-auth/src/game_profile.rs
@@ -1,6 +1,7 @@
+use std::collections::HashMap;
+
use azalea_buf::McBuf;
use serde::{Deserialize, Serialize};
-use std::collections::HashMap;
use uuid::Uuid;
#[derive(McBuf, Debug, Clone, Default, Eq, PartialEq)]