Re: [PATCH v2] rust: rbtree: simplify finding `current` in `remove_current`
From: Alexandre Courbot
Date: Tue Jul 08 2025 - 08:51:51 EST
On Tue Jul 8, 2025 at 4:58 PM JST, Onur Özkan wrote:
> The previous version used a verbose `match` to get
> `current`, which may be slightly confusing at first
> glance.
>
> This change makes it shorter and more clearly expresses
> the intent: prefer `next` if available, otherwise fall
> back to `prev`.
>
> Signed-off-by: Onur Özkan <work@xxxxxxxxxxxxx>
Thanks, this is definitely easier to read.
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>