Re: [PATCH 1/4] rust: macros: fix usage of `#[allow]` in `quote!`

From: Alice Ryhl
Date: Wed May 17 2023 - 16:40:50 EST


On 4/24/23 10:11, Benno Lossin wrote:
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@xxxxxxxxx>

Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>