diff options
author | Benno Lossin <benno.lossin@proton.me> | 2023-04-24 10:11:33 +0200 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2023-05-31 18:53:09 +0200 |
commit | b8342addded0099610902775617917fdee6edde8 (patch) | |
tree | c4caeb5d356eef5b5b13ea93977d4d28aa6a35ef /security | |
parent | docs: rust: point directly to the standalone installers (diff) | |
download | linux-b8342addded0099610902775617917fdee6edde8.tar.xz linux-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 <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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions