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

Less unsafe from value #592

Merged
merged 5 commits into from
Jul 30, 2023
Merged

Less unsafe from value #592

merged 5 commits into from
Jul 30, 2023

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented Jul 30, 2023

This replaces most UnsafeFromValue implementations with a macro. UnsafeFromValue::from_value has been renamed since it conflicts with FromValue::from_value when both are in scope, which is annoying.

Also unifies the behavior of Value to owned value conversion across all internal types so that the value is taken, rather than cloned as it was for some.

@udoprog udoprog added the enhancement New feature or request label Jul 30, 2023
@udoprog udoprog merged commit 013dcd8 into main Jul 30, 2023
@udoprog udoprog deleted the less-unsafe-from-value branch July 30, 2023 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant