Skip to content

Conversation

@joncinque
Copy link
Collaborator

Problem

As noted in #345, the custom implementation of PartialEq makes it impossible to match against const values, breaking downstream users.

Summary of changes

Revert the PartialEq implementation, and make it into a new function called address_eq. We'll rely on the compiler to do the right thing in the future instead.

Fixes #345

#### Problem

As noted in anza-xyz#345, the custom implementation of `PartialEq` makes it
impossible to match against const values, breaking downstream users.

#### Summary of changes

Revert the PartialEq implementation, and make it into a new function
called `address_eq`. We'll rely on the compiler to do the right thing in
the future instead.
@joncinque joncinque requested a review from febo October 13, 2025 21:54
Copy link
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@joncinque joncinque merged commit f677ec7 into anza-xyz:master Oct 13, 2025
26 checks passed
@joncinque joncinque deleted the revert-partialeq branch October 13, 2025 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

address: current PartialEq implementation breaks match-against-const situations

2 participants