Skip to content

Commit

Permalink
Use faster disjointness check for markers (#10439)
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin authored Jan 9, 2025
1 parent 14b685d commit 57367ed
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/uv-pep508/src/marker/algebra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1412,8 +1412,7 @@ impl Edges {
// not the resulting edges.
for (left_range, left_child) in left_edges {
for (right_range, right_child) in right_edges {
let intersection = right_range.intersection(left_range);
if intersection.is_empty() {
if right_range.is_disjoint(left_range) {
continue;
}

Expand Down

0 comments on commit 57367ed

Please sign in to comment.