Re: [PATCH 2/2] rust: platform: get rid of redundant Result in IRQ methods
From: Alice Ryhl
Date: Tue Nov 04 2025 - 03:49:06 EST
On Mon, Nov 03, 2025 at 09:30:13PM +0100, Danilo Krummrich wrote:
> Currently request_irq_by_index() returns
>
> Result<impl PinInit<irq::Registration<T>, Error> + 'a>
>
> which may carry an error in the Result or the initializer; the same is
> true for the other IRQ methods.
>
> Use pin_init::pin_init_scope() to get rid of this redundancy.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>