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:
Eric Engestrom 2025-10-04 15:17:15 +02:00
parent 49b2597854
commit 1def70585b

View file

@ -114,7 +114,7 @@ pub fn derive_as_slice(
f_attr.is_none(),
"{attr_name} attribute is only allowed on {slice_type}"
);
if !first.is_none() {
if first.is_some() {
found_last = true;
}
}