The funny part is: the fix does not change the unsafe block at all. The issue is elsewhere in safe rust code.