Re: [PATCH] rust: replace length checks with match

2025-05-28 Thread Tamir Duberstein
On Wed, May 28, 2025 at 11:58 AM kernel test robot wrote: > > Hi Tamir, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on bfc3cd87559bc593bb32bb1482f9cae3308b6398] > > url: > https://github.com/intel-lab-lkp/linux/commits/Tamir-Duberstein/rust-replace-leng

Re: [PATCH] rust: replace length checks with match

2025-05-28 Thread kernel test robot
Hi Tamir, kernel test robot noticed the following build errors: [auto build test ERROR on bfc3cd87559bc593bb32bb1482f9cae3308b6398] url: https://github.com/intel-lab-lkp/linux/commits/Tamir-Duberstein/rust-replace-length-checks-with-match/20250528-001121 base: bfc3cd87559bc593bb32bb1482f9c

Re: [PATCH] rust: replace length checks with match

2025-05-28 Thread Alice Ryhl
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