few bug fixes

This commit is contained in:
2025-03-14 03:33:48 +01:00
parent 663f395c6e
commit 2eaa843016
5 changed files with 46 additions and 30 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ pub type Result<T = Response> = std::result::Result<T, Error>;
pub enum Response {
Pong,
Success,
Player { cloak: String },
Player { cloak: String, uuid: String },
}
impl std::fmt::Display for Response {
@@ -12,7 +12,7 @@ impl std::fmt::Display for Response {
match self {
Response::Pong => write!(f, "Pong"),
Response::Success => write!(f, "Success"),
Response::Player { cloak } => write!(f, "@cloak={cloak}"),
Response::Player { cloak, uuid } => write!(f, "@cloak={cloak}@uuid={uuid}"),
}
}
}