summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorOnur Özkan <work@onurozkan.dev>2025-07-08 10:58:50 +0300
committerMiguel Ojeda <ojeda@kernel.org>2025-07-14 23:53:35 +0200
commitb6f885060e8e24f1a1a9205ba41a0524964e8c30 (patch)
tree8537883f621f26eaefcd339aa76cc5e7069f9131 /scripts/lib/kdoc/kdoc_output.py
parent8ffb945647f8740e2eab81ace8c87f9734c85f95 (diff)
rust: rbtree: simplify finding `current` in `remove_current`
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@onurozkan.dev> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Link: https://lore.kernel.org/r/20250708075850.25789-1-work@onurozkan.dev Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions