From 1def70585b543a4a6aebc1c289742e58d7372d48 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 4 Oct 2025 15:17:15 +0200 Subject: [PATCH] compiler/rust: replace `!first.is_none()` with `first.is_some()` Part-of: --- src/compiler/rust/proc/as_slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/rust/proc/as_slice.rs b/src/compiler/rust/proc/as_slice.rs index b9aa8096762..d1eafbab0de 100644 --- a/src/compiler/rust/proc/as_slice.rs +++ b/src/compiler/rust/proc/as_slice.rs @@ -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; } }