Skip to content

Conversation

@syvb
Copy link
Contributor

@syvb syvb commented Feb 9, 2024

There are a few places in Servo where we need to check if two structs from mozjs-sys are equal, but since Bindgen doesn't automatically derive PartialEq by default, the code has to compare the inner asBits_ field.

This PR tells Bindgen to automatically derive PartialEq where possible, to allow making such code simpler.

Signed-off-by: syvb <me@iter.ca>
@mrobinson mrobinson added this pull request to the merge queue Feb 9, 2024
Merged via the queue into servo:main with commit d1f1519 Feb 9, 2024
@syvb syvb deleted the derive-partialeq branch February 9, 2024 14:53
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.

2 participants