Re: [PATCH 5/5] rust: cleanup unnecessary casts

2024-09-23 Thread Alice Ryhl
On Fri, Sep 13, 2024 at 11:33 PM Gary Guo wrote: > > With `long` mapped to `isize`, `size_t`/`__kernel_size_t` mapped to > usize and `char` mapped to `u8`, many of the existing casts are no > longer necessary. > > Signed-off-by: Gary Guo This is great! Reviewed-by: Alice Ryhl

[PATCH 5/5] rust: cleanup unnecessary casts

2024-09-13 Thread Gary Guo
With `long` mapped to `isize`, `size_t`/`__kernel_size_t` mapped to usize and `char` mapped to `u8`, many of the existing casts are no longer necessary. Signed-off-by: Gary Guo --- rust/kernel/kunit.rs | 10 ++ rust/kernel/print.rs | 4 ++-- rust/kernel/str.rs | 6 +++--- rust/