Closed braddunbar closed 5 months ago
This change converts several usages of mem::forget to ManuallyDrop as recommended in the docs for mem::forget.
mem::forget
ManuallyDrop
While mem::forget can also be used to transfer memory ownership, doing so is error-prone. ManuallyDrop should be used instead.
This change converts several usages of
mem::forget
toManuallyDrop
as recommended in the docs formem::forget
.