Re: [PATCH v2 02/12] rust: error: improve unsafe code in example

Martin Rodriguez Reboredo
2024-01-27T15:10:50Z

On 1/23/24 12:00, Valentin Obst wrote:
> The `from_err_ptr` function is safe. There is no need for the call to it
> to be inside the unsafe block.
>
> Reword the SAFETY comment to provide a better justification of why the
> FFI call is safe.
>
> Signed-off-by: Valentin Obst <kernel@valentinobst.de>
> ---
> …