diff options
author | Curly Bryce <curlybryce@protonmail.com> | 2024-07-03 14:33:18 -0600 |
---|---|---|
committer | Curly Bryce <curlybryce@protonmail.com> | 2024-07-03 14:33:18 -0600 |
commit | 8c68b01bb9a28ada388187c17fa9b28a115e7cc7 (patch) | |
tree | 154296044638473e53d6d00141fb2d216fd619a3 /src/uid.rs | |
parent | 5bd4ddc7627ae1114d15f6f0485b2cef571be1b7 (diff) | |
download | poko_server-8c68b01bb9a28ada388187c17fa9b28a115e7cc7.tar.gz poko_server-8c68b01bb9a28ada388187c17fa9b28a115e7cc7.tar.bz2 poko_server-8c68b01bb9a28ada388187c17fa9b28a115e7cc7.zip |
user login/logout
Diffstat (limited to 'src/uid.rs')
-rw-r--r-- | src/uid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)] pub struct UID(u8, u8); impl UID { - fn to_hex(&self) -> String { + pub fn to_hex(&self) -> String { hex::encode_upper(vec![self.0, self.1]) } pub fn from(s: String) -> Result<Self, String> { |