linux-IllusionX/rust/macros
Benno Lossin b8342addde rust: macros: fix usage of #[allow] in quote!
When using `quote!` as part of an expression that was not the last one
in a function, the `#[allow(clippy::vec_init_then_push)]` attribute
would be present on an expression, which is not allowed.
This patch refactors that part of the macro to use a statement instead.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/r/20230424081112.99890-1-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-05-31 18:53:09 +02:00
..
concat_idents.rs rust: macros: add concat_idents! proc macro 2022-12-04 01:59:04 +01:00
helpers.rs rust: macros: Allow specifying multiple module aliases 2023-04-10 23:55:43 +02:00
lib.rs rust: init: add PinnedDrop trait and macros 2023-04-12 18:41:05 +02:00
module.rs rust: error: Rename to_kernel_errno() -> to_errno() 2023-04-12 18:41:04 +02:00
pin_data.rs rust: init: add initialization macros 2023-04-12 18:41:05 +02:00
pinned_drop.rs rust: init: add PinnedDrop trait and macros 2023-04-12 18:41:05 +02:00
quote.rs rust: macros: fix usage of #[allow] in quote! 2023-05-31 18:53:09 +02:00
vtable.rs rust: macros: add #[vtable] proc macro 2022-12-04 01:59:15 +01:00