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

Implement Expandable::into_id #536

Merged
merged 1 commit into from
May 4, 2024

Conversation

mzeitlin11
Copy link
Collaborator

Is unfortunate to have to add another method to the Object trait to achieve this. But not sure of another way to implement a generic way to pull an owned T::Id out of Expandable<T> without cloning (ran into needing this when using this next branch, but think it's probably relatively common since most requests won't set expand, so users will probably only want the id in Expandable<T>.

@arlyon arlyon mentioned this pull request Apr 26, 2024
@arlyon
Copy link
Owner

arlyon commented Apr 30, 2024

Looks OK to me.

@mzeitlin11 mzeitlin11 merged commit 4f29e69 into arlyon:next May 4, 2024
18 checks passed
@mzeitlin11 mzeitlin11 deleted the expandable_into_id branch May 4, 2024 18:23
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