Use drop_in_place for pthread_attr_destroy.

This commit is contained in:
4lDO2
2023-05-02 11:39:12 +02:00
parent b4600182b8
commit f60461cbf7
+1 -3
View File
@@ -29,9 +29,7 @@ impl Default for RlctAttr {
#[no_mangle]
pub unsafe extern "C" fn pthread_attr_destroy(attr: *mut pthread_attr_t) -> c_int {
let _attr = &mut *attr.cast::<RlctAttr>();
// No-op
core::ptr::drop_in_place(attr);
0
}