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

From: Martin Rodriguez Reboredo
Date: Sat Jan 27 2024 - 10:11:03 EST


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@xxxxxxxxxxxxxxx>
---
[...]

Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx>