Re: [PATCH v4 3/3] rust: error: Replace pr_warn by pr_warn_once
From: jens . korinth
Date: Thu Dec 05 2024 - 01:37:19 EST
Sorry for the late response, the usual madness at the end of the year is
setting in.
> Do you mean removing the function altogether? i.e. migrating all
> callers to `try_from_errno`?
I think it should be `TryFrom`. The `std::From` doc [1] says:
Note: This trait must not fail. The From trait is intended for perfect
conversions. If the conversion can fail or is not perfect, use TryFrom.
[1]: https://doc.rust-lang.org/std/convert/trait.From.html
Jens