Skip to content

Removes PartialEq and Eq on Map V traits#2669

Merged
vicsn merged 1 commit intofeat/improve-tree-logicfrom
remove/eq-on-maps
Apr 8, 2025
Merged

Removes PartialEq and Eq on Map V traits#2669
vicsn merged 1 commit intofeat/improve-tree-logicfrom
remove/eq-on-maps

Conversation

@howardwu
Copy link
Member

Motivation

This PR removes PartialEq and Eq on Map V traits.

These properties are not needed, and reduces the dependencies required for an object to be supported by our maps.

@howardwu howardwu marked this pull request as ready for review March 28, 2025 22:14
Copy link
Collaborator

@raychu86 raychu86 left a comment

Choose a reason for hiding this comment

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

LGTM. I did a check and there doesn't seem to be any case were we do comparisons directly on the maps (nor would we want to).

Copy link
Collaborator

@niklaslong niklaslong left a comment

Choose a reason for hiding this comment

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

In principle, this change should be fine. One caveat is if we ever have a requirement to compare maps in tests, though there are workarounds like re-implementing the trait (only for tests) or relying on the implementations of the test values. LGTM 👍

@vicsn
Copy link
Collaborator

vicsn commented Apr 8, 2025

The failing CI is related to the base branch - merging because its going into a feature branch.

@vicsn vicsn merged commit 2eea916 into feat/improve-tree-logic Apr 8, 2025
1 of 2 checks passed
@vicsn vicsn deleted the remove/eq-on-maps branch April 8, 2025 11:33
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.

5 participants