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

Remove auto-deref recursion from Option<T> <> ScVal conversions #322

Merged
merged 2 commits into from
Nov 14, 2023

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 13, 2023

What

Change the From<&Option<T> for ScVal impl to require that T is cloneable instead of requiring that T has an Into conversion defined for its reference type.

Why

The requirement on the reference type was causing what seemed like unbounded recursion in rs-soroban-env.

@leighmcculloch leighmcculloch marked this pull request as ready for review November 14, 2023 00:19
@leighmcculloch leighmcculloch added this pull request to the merge queue Nov 14, 2023
@leighmcculloch leighmcculloch removed this pull request from the merge queue due to a manual request Nov 14, 2023
@leighmcculloch leighmcculloch added this pull request to the merge queue Nov 14, 2023
Merged via the queue into main with commit d6f8ece Nov 14, 2023
7 checks passed
@leighmcculloch leighmcculloch deleted the remove-auto-deref-recursion branch November 14, 2023 00:58
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