Skip to content

Commit aac4eb8

Browse files
committed
fix warnings
1 parent 8e473dd commit aac4eb8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openssl/src/ssl/bio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ unsafe extern "C" fn destroy<S>(bio: *mut BIO) -> c_int {
183183

184184
let data = BIO_get_data(bio);
185185
assert!(!data.is_null());
186-
Box::<StreamState<S>>::from_raw(data as *mut _);
186+
let _ = Box::<StreamState<S>>::from_raw(data as *mut _);
187187
BIO_set_data(bio, ptr::null_mut());
188188
BIO_set_init(bio, 0);
189189
1

openssl/src/ssl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ unsafe extern "C" fn free_data_box<T>(
542542
_argp: *mut c_void,
543543
) {
544544
if !ptr.is_null() {
545-
Box::<T>::from_raw(ptr as *mut T);
545+
let _ = Box::<T>::from_raw(ptr as *mut T);
546546
}
547547
}
548548

0 commit comments

Comments
 (0)