Skip to content

Commit 5fbb181

Browse files
committed
Use result of Box::from_raw
1 parent a5ef40e commit 5fbb181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbedtls/src/pk/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ extern "C" fn alloc_custom_pk_ctx() -> *mut c_void {
113113
}
114114

115115
unsafe extern "C" fn free_custom_pk_ctx(p: *mut c_void) {
116-
Box::from_raw(p as *mut CustomPkContext);
116+
let _ = Box::from_raw(p as *mut CustomPkContext);
117117
}
118118

119119
extern "C" fn custom_pk_can_do(_t: u32) -> i32 {

0 commit comments

Comments
 (0)