Re: [PATCH v2] rust: rbtree: simplify finding `current` in `remove_current`

From: Miguel Ojeda
Date: Mon Jul 14 2025 - 19:32:38 EST


On Tue, Jul 8, 2025 at 9:59 AM Onur Özkan <work@xxxxxxxxxxxxx> 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>

Applied to `rust-next` -- thanks everyone!

Cheers,
Miguel