Re: [PATCH 1/3] rust: error: improve `Error::from_errno` documentation

From: Miguel Ojeda
Date: Sat Aug 30 2025 - 09:01:34 EST


On Sat, Aug 30, 2025 at 2:18 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> Small nit: this leaves a tiny chance of misunderstanding that this
> function actually expects literal negative integers. How about using
> e.g. `bindings::EPERM` instead of `-1`?

Sounds good -- or perhaps `EPERM.to_errno()`?

Thanks!

Cheers,
Miguel