mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
compiler/rust: replace !first.is_none() with first.is_some()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
49b2597854
commit
1def70585b
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ pub fn derive_as_slice(
|
||||||
f_attr.is_none(),
|
f_attr.is_none(),
|
||||||
"{attr_name} attribute is only allowed on {slice_type}"
|
"{attr_name} attribute is only allowed on {slice_type}"
|
||||||
);
|
);
|
||||||
if !first.is_none() {
|
if first.is_some() {
|
||||||
found_last = true;
|
found_last = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue