From 6b0fe5bf638079d535e70c3c91e78fe35a5d2a2f Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 26 Oct 2024 05:29:26 +0000 Subject: group imports with rustfmt --- azalea-auth/src/auth.rs | 10 ++++++---- azalea-auth/src/cache.rs | 3 ++- azalea-auth/src/game_profile.rs | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'azalea-auth/src') 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)] -- cgit v1.2.3