Update to latest rust master (0.8-pre d2b0b11)
This commit is contained in:
parent
ec7474c895
commit
76a3b83d27
2
hash.rs
2
hash.rs
|
|
@ -99,7 +99,7 @@ impl Hasher {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for Hasher {
|
impl Drop for Hasher {
|
||||||
fn drop(&self) {
|
fn drop(&mut self) {
|
||||||
#[fixed_stack_segment]; #[inline(never)];
|
#[fixed_stack_segment]; #[inline(never)];
|
||||||
unsafe {
|
unsafe {
|
||||||
libcrypto::EVP_MD_CTX_destroy(self.ctx);
|
libcrypto::EVP_MD_CTX_destroy(self.ctx);
|
||||||
|
|
|
||||||
2
pkey.rs
2
pkey.rs
|
|
@ -361,7 +361,7 @@ impl PKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for PKey {
|
impl Drop for PKey {
|
||||||
fn drop(&self) {
|
fn drop(&mut self) {
|
||||||
#[fixed_stack_segment]; #[inline(never)];
|
#[fixed_stack_segment]; #[inline(never)];
|
||||||
unsafe {
|
unsafe {
|
||||||
libcrypto::EVP_PKEY_free(self.evp);
|
libcrypto::EVP_PKEY_free(self.evp);
|
||||||
|
|
|
||||||
2
symm.rs
2
symm.rs
|
|
@ -184,7 +184,7 @@ impl Crypter {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for Crypter {
|
impl Drop for Crypter {
|
||||||
fn drop(&self) {
|
fn drop(&mut self) {
|
||||||
#[fixed_stack_segment]; #[inline(never)];
|
#[fixed_stack_segment]; #[inline(never)];
|
||||||
unsafe {
|
unsafe {
|
||||||
libcrypto::EVP_CIPHER_CTX_free(self.ctx);
|
libcrypto::EVP_CIPHER_CTX_free(self.ctx);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue