From f393d540922944dcffd93fa9c4ba6a42e2b8e067 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Sat, 11 Jun 2022 21:47:47 +0200 Subject: [PATCH] Make enums Clone and Copy --- openpgp-card/src/card_do.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpgp-card/src/card_do.rs b/openpgp-card/src/card_do.rs index a55dc46..caf4574 100644 --- a/openpgp-card/src/card_do.rs +++ b/openpgp-card/src/card_do.rs @@ -316,7 +316,7 @@ impl Display for UIF { /// /// Touch policies were introduced in YubiKey Version 4.2.0 with modes ON, OFF and FIXED. /// YubiKey Version >= 5.2.1 added support for modes CACHED and CACHED_FIXED. -#[derive(Eq, PartialEq)] +#[derive(Debug, Eq, PartialEq, Clone, Copy)] #[non_exhaustive] pub enum TouchPolicy { Off, @@ -507,6 +507,7 @@ impl Display for KeyInformation { /// KeyStatus is contained in `KeyInformation`. It encodes if key material on a card was imported /// or generated on the card. +#[derive(Debug, PartialEq, Clone, Copy)] #[non_exhaustive] pub enum KeyStatus { NotPresent,