diff options
author | Tamir Duberstein <tamird@gmail.com> | 2025-05-29 09:14:58 -0400 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-07-21 00:03:01 +0200 |
commit | 8b097b5ac68b0fd2a7a251e101a84175b2ed585d (patch) | |
tree | 6251d676fdbbd132f8b0030a1f0f72d4a576496a /scripts/lib/kdoc/kdoc_output.py | |
parent | 275ad5e7931160aca2ea7657f7be7ef3493dea79 (diff) |
scripts: rust: replace length checks with match
Use a match expression with slice patterns instead of length checks and
indexing. The result is more idiomatic, which is a better example for
future Rust code authors.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250529-idiomatic-match-slice-v2-1-4925ca2f1550@gmail.com
[ Reworded title. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions