diff --git a/openssl/src/ssl/bio.rs b/openssl/src/ssl/bio.rs index 3ace35e6d9..4a6ed8a179 100644 --- a/openssl/src/ssl/bio.rs +++ b/openssl/src/ssl/bio.rs @@ -183,7 +183,7 @@ unsafe extern "C" fn destroy(bio: *mut BIO) -> c_int { let data = BIO_get_data(bio); assert!(!data.is_null()); - Box::>::from_raw(data as *mut _); + let _ = Box::>::from_raw(data as *mut _); BIO_set_data(bio, ptr::null_mut()); BIO_set_init(bio, 0); 1 diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 0ca6814a77..192a9db6d0 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -542,7 +542,7 @@ unsafe extern "C" fn free_data_box( _argp: *mut c_void, ) { if !ptr.is_null() { - Box::::from_raw(ptr as *mut T); + let _ = Box::::from_raw(ptr as *mut T); } }