aboutsummaryrefslogtreecommitdiff
path: root/src/uid.rs
diff options
context:
space:
mode:
authorCurly Bryce <curlybryce@protonmail.com>2024-07-03 14:33:18 -0600
committerCurly Bryce <curlybryce@protonmail.com>2024-07-03 14:33:18 -0600
commit8c68b01bb9a28ada388187c17fa9b28a115e7cc7 (patch)
tree154296044638473e53d6d00141fb2d216fd619a3 /src/uid.rs
parent5bd4ddc7627ae1114d15f6f0485b2cef571be1b7 (diff)
downloadpoko_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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uid.rs b/src/uid.rs
index b15f65b..fed0af0 100644
--- a/src/uid.rs
+++ b/src/uid.rs
@@ -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> {