diff options
author | Tamir Duberstein <tamird@gmail.com> | 2024-11-20 06:46:01 -0500 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-01-13 23:45:30 +0100 |
commit | aa991a2a819535a0014e1159b455b64e3db87510 (patch) | |
tree | adeb52ecfd462a58e5e46066197884217840f856 /scripts/gdb/linux/vmalloc.py | |
parent | c6340da3d254ee491fc113d4dc5566bea7bebdf3 (diff) |
rust: types: avoid `as` casts
Replace `as` casts with `cast{,_mut}` calls which are a bit safer.
In one instance, remove an unnecessary `as` cast without replacement.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241120-borrow-mut-v6-2-80dbadd00951@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions