From 31bd297fc2e89c5095bbc7a5ec0202c4a4b258ab Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 5 Dec 2025 18:09:57 +0100 Subject: [PATCH] meson/rust: allow "needless lifetimes" Part-of: --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index cd6d246128f..2527d8e0b43 100644 --- a/meson.build +++ b/meson.build @@ -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 = [