nit: `ptr::to_mut_unsafe_ptr` should be unnecessary here