rust: std_vendor: simplify `{ .. macro! .. }` with inner attributes
authorMiguel Ojeda <ojeda@kernel.org>
Wed, 4 Sep 2024 20:43:47 +0000 (22:43 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 7 Oct 2024 19:39:57 +0000 (21:39 +0200)
commit1c71ddb310ad04ccec70441c7f17089514e3bab8
treef461ae7fe7201a67c4e8cb8b9cb3ec2e46fa2ea9
parent04866494e936d041fd196d3a36aecd979e4ef078
rust: std_vendor: simplify `{ .. macro! .. }` with inner attributes

It is cleaner to have a single inner attribute rather than needing
several hidden lines to wrap the macro invocations.

Thus simplify them.

Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/20240904204347.168520-20-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/std_vendor.rs