meson/rust: allow "needless lifetimes"

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
Eric Engestrom
2025-12-05 18:09:57 +01:00
parent af781dc7c8
commit 31bd297fc2

View File

@@ -824,6 +824,10 @@ if with_gallium_rusticl or with_nouveau_vk or with_tools.contains('etnaviv') or
# We want to be able to write `else { if {} }` when it makes more sense than
# collapsing it into `else if {}`.
'-Aclippy::collapsible_else_if',
# "Needless lifetimes" might be needless but they're harmless and we
# prefer being explicit, so allow them.
'-Aclippy::needless_lifetimes',
]
rust_2024_lint_args = [