diff options
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> { |