diff options
| author | Benno Lossin <[email protected]> | 2023-04-24 08:11:33 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2023-05-31 16:53:09 +0000 |
| commit | b8342addded0099610902775617917fdee6edde8 (patch) | |
| tree | c4caeb5d356eef5b5b13ea93977d4d28aa6a35ef /rust/helpers.c | |
| parent | docs: rust: point directly to the standalone installers (diff) | |
| download | kernel-b8342addded0099610902775617917fdee6edde8.tar.gz kernel-b8342addded0099610902775617917fdee6edde8.zip | |
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 <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Martin Rodriguez Reboredo <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
