summaryrefslogtreecommitdiff
path: root/src/otp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/otp.rs')
-rw-r--r--src/otp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/otp.rs b/src/otp.rs
index 801f52c..6f6bd80 100644
--- a/src/otp.rs
+++ b/src/otp.rs
@@ -5,7 +5,7 @@ use nitrokey_sys;
use crate::util::{get_command_result, get_cstring, result_from_string, CommandError};
/// Modes for one-time password generation.
-#[derive(Debug, PartialEq)]
+#[derive(Clone, Copy, Debug, PartialEq)]
pub enum OtpMode {
/// Generate one-time passwords with six digits.
SixDigits,