mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
meson/rust: allow explicit if x.is_none { return None } instead of x?
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
31bd297fc2
commit
e7142c74e2
1 changed files with 3 additions and 0 deletions
|
|
@ -828,6 +828,9 @@ if with_gallium_rusticl or with_nouveau_vk or with_tools.contains('etnaviv') or
|
||||||
# "Needless lifetimes" might be needless but they're harmless and we
|
# "Needless lifetimes" might be needless but they're harmless and we
|
||||||
# prefer being explicit, so allow them.
|
# prefer being explicit, so allow them.
|
||||||
'-Aclippy::needless_lifetimes',
|
'-Aclippy::needless_lifetimes',
|
||||||
|
|
||||||
|
# Being explicit has value, allow it.
|
||||||
|
'-Aclippy::question_mark',
|
||||||
]
|
]
|
||||||
|
|
||||||
rust_2024_lint_args = [
|
rust_2024_lint_args = [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue