aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto/hash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/crypto/hash.rs')
-rw-r--r--openssl/src/crypto/hash.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/crypto/hash.rs b/openssl/src/crypto/hash.rs
index 29e180e5..801d8ca5 100644
--- a/openssl/src/crypto/hash.rs
+++ b/openssl/src/crypto/hash.rs
@@ -6,7 +6,7 @@ use std::io;
use ffi;
/// Message digest (hash) type.
-#[derive(Copy)]
+#[derive(Copy, Clone)]
pub enum Type {
MD5,
SHA1,
@@ -51,7 +51,7 @@ impl Type {
}
}
-#[derive(PartialEq, Copy)]
+#[derive(PartialEq, Copy, Clone)]
enum State {
Reset,
Updated,