aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-11-12 04:26:02 +0330
committermat <git@matdoes.dev>2025-11-11 18:56:14 -0600
commita4312599f7c04709a92b7be238dcf577bafbb14f (patch)
treebef58dca34239bac54649ab1e0db2597de10212c /azalea-auth
parentac2b425615dd6cd8562c290e33b06e553559802d (diff)
downloadazalea-drasl-a4312599f7c04709a92b7be238dcf577bafbb14f.tar.xz
cleanup
- remove deprecated code - add `[lints] workspace=true` to every Cargo.toml, to make modifying clippy lints easier for later - remove some unnecessary #[allow]s - use Vec3i in some parts of the collision code
Diffstat (limited to 'azalea-auth')
-rw-r--r--azalea-auth/Cargo.toml3
-rw-r--r--azalea-auth/src/auth.rs4
2 files changed, 3 insertions, 4 deletions
diff --git a/azalea-auth/Cargo.toml b/azalea-auth/Cargo.toml
index db6837df..c33945df 100644
--- a/azalea-auth/Cargo.toml
+++ b/azalea-auth/Cargo.toml
@@ -31,3 +31,6 @@ uuid = { workspace = true, features = ["serde", "v3"] }
[dev-dependencies]
env_logger.workspace = true
tokio = { workspace = true, features = ["full"] }
+
+[lints]
+workspace = true
diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs
index f299ba74..a4176d6c 100644
--- a/azalea-auth/src/auth.rs
+++ b/azalea-auth/src/auth.rs
@@ -224,7 +224,6 @@ pub struct DeviceCodeResponse {
pub interval: u64,
}
-#[allow(unused)]
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct AccessTokenResponse {
pub token_type: String,
@@ -235,7 +234,6 @@ pub struct AccessTokenResponse {
pub user_id: String,
}
-#[allow(unused)]
#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct XboxLiveAuthResponse {
@@ -252,7 +250,6 @@ pub struct XboxLiveAuth {
pub user_hash: String,
}
-#[allow(unused)]
#[derive(Debug, Deserialize, Serialize)]
pub struct MinecraftAuthResponse {
pub username: String,
@@ -270,7 +267,6 @@ pub struct GameOwnershipResponse {
pub key_id: String,
}
-#[allow(unused)]
#[derive(Debug, Deserialize)]
pub struct GameOwnershipItem {
pub name: String,