Re: [PATCH v2 2/6] rust: ptr: use `match` instead of `unwrap_or_else` for `build_index`
From: Alexandre Courbot
Date: Thu Jun 04 2026 - 19:44:19 EST
On Tue Jun 2, 2026 at 11:17 PM JST, Gary Guo wrote:
> Use `match` to avoid potential inlining issues of the `unwrap_or_else`
> function.
>
> Suggested-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
> Link: https://lore.kernel.org/rust-for-linux/aeCKlut-88SbNsyW@xxxxxxxxxx/
> Signed-off-by: Gary Guo <gary@xxxxxxxxxxx>
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>