aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-05-11 21:17:32 -0700
committerSteven Fackler <[email protected]>2014-05-11 21:17:32 -0700
commit7e47bc8a4c13cd1c37d565a353406a59fa2fe047 (patch)
tree047bb27d11b43910f7deb3c38251b2d5eb4f876b /crypto
parentMerge pull request #11 from ebfe/fix-build (diff)
downloadrust-openssl-7e47bc8a4c13cd1c37d565a353406a59fa2fe047.tar.xz
rust-openssl-7e47bc8a4c13cd1c37d565a353406a59fa2fe047.zip
Update for transmute move
Diffstat (limited to 'crypto')
-rw-r--r--crypto/pkey.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/pkey.rs b/crypto/pkey.rs
index 1fd88061..6c0b4e83 100644
--- a/crypto/pkey.rs
+++ b/crypto/pkey.rs
@@ -1,6 +1,6 @@
-use std::cast;
use libc::{c_char, c_int, c_uint};
use libc;
+use std::mem;
use std::ptr;
use crypto::hash::{HashType, MD5, SHA1, SHA224, SHA256, SHA384, SHA512};
@@ -123,7 +123,7 @@ impl PKey {
EVP_PKEY_assign(
self.evp,
6 as c_int,
- cast::transmute(rsa));
+ mem::transmute(rsa));
self.parts = Both;
}