rust: list: simplify macro capture
authorTamir Duberstein <tamird@gmail.com>
Wed, 9 Jul 2025 19:31:11 +0000 (15:31 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Sat, 19 Jul 2025 21:18:18 +0000 (23:18 +0200)
commite71d7e39be6e2aa3fbba34cad12aa72ab853cfb5
tree13f9e82428481ff1f28bad5a92d1b095d7e141de
parentb0c7d8c9e8c671aaee6d14abd834f7d0d63e3c19
rust: list: simplify macro capture

Avoid manually capturing generics; use `ty` to capture the whole type
instead.

Reviewed-by: Christian Schrefl <chrisi.schrefl@gmail.com>
Tested-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250709-list-no-offset-v4-1-a429e75840a9@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/list/impl_list_item_mod.rs