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

From: Miguel Ojeda
Date: Wed May 31 2023 - 13:07:54 EST


On Mon, Apr 24, 2023 at 10:11 AM Benno Lossin <benno.lossin@xxxxxxxxx> 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>

Series applied to `rust-next` (with the newline added) -- thanks everyone!

Cheers,
Miguel