Derive PartialEq for SlotId

This commit is contained in:
Jack Grigg
2019-12-01 15:35:00 +00:00
parent 2bdeca0069
commit d3e565ef55
+2 -2
View File
@@ -52,7 +52,7 @@ use std::convert::TryFrom;
/// Slot identifiers. /// Slot identifiers.
/// <https://developers.yubico.com/PIV/Introduction/Certificate_slots.html> /// <https://developers.yubico.com/PIV/Introduction/Certificate_slots.html>
#[derive(Clone, Copy, Debug)] #[derive(Clone, Copy, Debug, PartialEq)]
pub enum SlotId { pub enum SlotId {
/// This certificate and its associated private key is used to authenticate the card /// This certificate and its associated private key is used to authenticate the card
/// and the cardholder. This slot is used for things like system login. The end user /// and the cardholder. This slot is used for things like system login. The end user
@@ -136,7 +136,7 @@ impl SlotId {
/// Retired slot IDs. /// Retired slot IDs.
#[allow(missing_docs)] #[allow(missing_docs)]
#[derive(Clone, Copy, Debug)] #[derive(Clone, Copy, Debug, PartialEq)]
pub enum RetiredSlotId { pub enum RetiredSlotId {
R1, R1,
R2, R2,