From 5ab491e44f2af0b6d07b008de638e50a191f3ea4 Mon Sep 17 00:00:00 2001 From: GearsDatapacks Date: Fri, 29 Nov 2024 00:24:32 +0000 Subject: [PATCH] is_none_or --- compiler-core/src/analyse.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler-core/src/analyse.rs b/compiler-core/src/analyse.rs index 6f7c28877..8cffa8a9e 100644 --- a/compiler-core/src/analyse.rs +++ b/compiler-core/src/analyse.rs @@ -1783,11 +1783,10 @@ fn get_compatible_record_fields( }; // The labels must be the same - #[allow(clippy::nonminimal_bool)] // TODO: Bump to Rust 1.83 - if !argument + if argument .label .as_ref() - .is_some_and(|(_, arg_label)| arg_label == first_label) + .is_none_or(|(_, arg_label)| arg_label != first_label) { continue 'next_argument; }