Re: [PATCH v5] rust: rbtree: add immutable cursor
From: Miguel Ojeda
Date: Sun Nov 16 2025 - 17:34:38 EST
On Tue, Oct 14, 2025 at 2:33 PM Vitaly Wool <vitaly.wool@xxxxxxxxxxx> wrote:
>
> + best_links = Some(unsafe { NonNull::new_unchecked(&mut (*this).links) });
Is there a reason this kind of borrow is a `&mut` and not a `&raw mut`?
I see in the same file there are others that could be simplified too.
Cheers,
Miguel