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

Tuple and VecTuple incorrectly takes their values #562

Merged
merged 2 commits into from
Jun 12, 2023
Merged

Tuple and VecTuple incorrectly takes their values #562

merged 2 commits into from
Jun 12, 2023

Conversation

DarkRTA
Copy link
Contributor

@DarkRTA DarkRTA commented Jun 12, 2023

This fixes a bug where converting a value to a Rust tuple will incorrectly take ownership of it.

@udoprog
Copy link
Collaborator

udoprog commented Jun 12, 2023

I extended the PR to fix VecTuple at the same time and add a test case.

Thank you again for bringing this to our attention!

@udoprog udoprog added the bug Something isn't working label Jun 12, 2023
@udoprog udoprog changed the title Fix an incorrect .take() in impl_tuple! Tuple and VecTuple incorrectly takes their values Jun 12, 2023
@udoprog udoprog merged commit ce59c13 into rune-rs:main Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants