diff options
| author | Alex Crichton <[email protected]> | 2015-04-02 18:14:51 -0700 |
|---|---|---|
| committer | Alex Crichton <[email protected]> | 2015-04-02 18:14:51 -0700 |
| commit | 293f1ce5b19610255f4fe3a69cf8fd159a0d5820 (patch) | |
| tree | 334537900cf3d6d55e3b980e69375a407ff0868c /openssl/src/crypto/hash.rs | |
| parent | Remove two features (diff) | |
| download | rust-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.rs | 4 |
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, |