few changes

This commit is contained in:
2025-03-31 23:15:14 +02:00
parent caae6ea0fc
commit 6b01a37ec6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ pub fn player(session: &Session, uuid: String) -> Result {
} }
_ => Ok(crate::response::Response::Player( _ => Ok(crate::response::Response::Player(
crate::response::PlayerResponse::NonSaturnPlayer, crate::response::PlayerResponse::NonSaturnPlayer(uuid),
)), )),
} }
} }
+2 -2
View File
@@ -9,7 +9,7 @@ pub enum PlayerResponse {
hats: Vec<String>, hats: Vec<String>,
hat: String, hat: String,
}, },
NonSaturnPlayer, NonSaturnPlayer(String),
} }
impl std::fmt::Display for PlayerResponse { impl std::fmt::Display for PlayerResponse {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@@ -26,7 +26,7 @@ impl std::fmt::Display for PlayerResponse {
cloaks.join("$"), cloaks.join("$"),
hats.join("$"), hats.join("$"),
), ),
PlayerResponse::NonSaturnPlayer => write!(f, "@saturn=false"), PlayerResponse::NonSaturnPlayer(uuid) => write!(f, "@saturn=false@uuid={uuid}"),
} }
} }
} }