aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2025-05-29 09:14:58 -0400
committerMiguel Ojeda <ojeda@kernel.org>2025-07-21 00:03:01 +0200
commit8b097b5ac68b0fd2a7a251e101a84175b2ed585d (patch)
tree6251d676fdbbd132f8b0030a1f0f72d4a576496a /rust/helpers/helpers.c
parentrust: list: remove nonexistent generic parameter in link (diff)
downloadwireguard-linux-8b097b5ac68b0fd2a7a251e101a84175b2ed585d.tar.xz
wireguard-linux-8b097b5ac68b0fd2a7a251e101a84175b2ed585d.zip
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 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions