Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the TypeId FFI trait #1952

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Adding the TypeId FFI trait #1952

merged 1 commit into from
Apr 26, 2024

Conversation

bendk
Copy link
Contributor

@bendk bendk commented Jan 22, 2024

The metadata code now uses this trait to get the TYPE_ID_METADATA rather than Lift/Lower. This feels cleaner, since it was often not clear which trait to use before. This removes the hacky handling of type id metadata for callback interfaces that I added in #1950.

Let's not merge this until after 0.26.0 is released. It feels like too big of a change at this point in the process.

@bendk bendk requested a review from a team as a code owner January 22, 2024 22:58
@bendk bendk requested review from badboy and removed request for a team January 22, 2024 22:58
The metadata code now uses this trait to get the `TYPE_ID_METADATA`
rather than Lift/Lower.  This feels cleaner, since it was often not
clear which trait to use before. This removes the hacky handling of type
id metadata for callback interfaces that I added in mozilla#1950
@bendk bendk force-pushed the metadata-ffi-trait branch from 6725e5e to 06df57c Compare April 26, 2024 17:12
Copy link
Member

@mhammond mhammond left a comment

Choose a reason for hiding this comment

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

This does seem cleaner 👍

@bendk bendk merged commit 0f95c82 into mozilla:main Apr 26, 2024
5 checks passed
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