mir-Duberstein/rust-replace-length-checks-with-match/20250528-001121
> base: bfc3cd87559bc593bb32bb1482f9cae3308b6398
> patch link:
> https://lore.kernel.org/r/20250527-idiomatic-match-slice-v1-1-34b0b1d1d58c%40gmail.com
> patch subject: [PATCH] rust: replace length checks with match
&
: bfc3cd87559bc593bb32bb1482f9cae3308b6398
patch link:
https://lore.kernel.org/r/20250527-idiomatic-match-slice-v1-1-34b0b1d1d58c%40gmail.com
patch subject: [PATCH] rust: replace length checks with match
config: x86_64-rhel-9.4-rust
(https://download.01.org/0day-ci/archive/20250528/202505282330.oohtt60s-...@intel.com/config
On Tue, May 27, 2025 at 12:09:36PM -0400, Tamir Duberstein wrote:
> 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.
>
> Signed-off-by: Tamir Duberstein
Reviewed-by: Alice R
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.
Signed-off-by: Tamir Duberstein
---
scripts/rustdoc_test_gen.rs | 33 +
1 file changed, 17 inser
4 matches
Mail list logo