From 7e47bc8a4c13cd1c37d565a353406a59fa2fe047 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 11 May 2014 21:17:32 -0700 Subject: Update for transmute move --- crypto/pkey.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto') 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; } -- cgit v1.2.3