Skip to content

Commit

Permalink
is_none_or
Browse files Browse the repository at this point in the history
  • Loading branch information
GearsDatapacks authored and PgBiel committed Dec 21, 2024
1 parent da5abf0 commit 5ab491e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compiler-core/src/analyse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1783,11 +1783,10 @@ fn get_compatible_record_fields<A: std::fmt::Debug>(
};

// 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;
}
Expand Down

0 comments on commit 5ab491e

Please sign in to comment.