[fontations] Fix a warning

This commit is contained in:
Behdad Esfahbod 2025-03-03 23:43:28 -07:00 committed by Khaled Hosny
parent bed809bc6b
commit db6431f140

View file

@ -22,7 +22,7 @@ pub struct FontationsData {
#[no_mangle]
pub extern "C" fn fontations_data_destroy(ptr: *mut c_void) {
if !ptr.is_null() {
unsafe { Box::from_raw(ptr as *mut FontationsData); }
unsafe { let _ = Box::from_raw(ptr as *mut FontationsData); }
}
}