diff --git a/src/yubikey.rs b/src/yubikey.rs index a0fb370..ba42096 100644 --- a/src/yubikey.rs +++ b/src/yubikey.rs @@ -80,7 +80,7 @@ const TAG_DYN_AUTH: u8 = 0x7c; pub type CachedPin = secrecy::SecretVec; /// YubiKey serial number. -#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)] +#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, PartialOrd, Ord)] pub struct Serial(pub u32); impl From for Serial {