aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto/hash.rs
diff options
context:
space:
mode:
authorAlex Crichton <[email protected]>2015-04-02 18:14:51 -0700
committerAlex Crichton <[email protected]>2015-04-02 18:14:51 -0700
commit293f1ce5b19610255f4fe3a69cf8fd159a0d5820 (patch)
tree334537900cf3d6d55e3b980e69375a407ff0868c /openssl/src/crypto/hash.rs
parentRemove two features (diff)
downloadrust-openssl-293f1ce5b19610255f4fe3a69cf8fd159a0d5820.tar.xz
rust-openssl-293f1ce5b19610255f4fe3a69cf8fd159a0d5820.zip
Fixup for beta
Add derive(Clone) and don't negate unsigned numbers
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,