Fix drop signature
This commit is contained in:
parent
548c8b5fba
commit
2234899e59
|
|
@ -7,7 +7,7 @@ use std::str;
|
||||||
|
|
||||||
pub struct CryptoString(&'static str);
|
pub struct CryptoString(&'static str);
|
||||||
|
|
||||||
impl<'s> Drop for CryptoString {
|
impl Drop for CryptoString {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
CRYPTO_free(self.0.as_ptr() as *mut c_void,
|
CRYPTO_free(self.0.as_ptr() as *mut c_void,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue