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

fix: skip deserialization, just use a &str #519

Merged
merged 2 commits into from
Jul 22, 2024
Merged

fix: skip deserialization, just use a &str #519

merged 2 commits into from
Jul 22, 2024

Conversation

preyasshah
Copy link
Collaborator

No description provided.

Copy link
Member

@adam-azarchs adam-azarchs left a comment

Choose a reason for hiding this comment

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

Thanks. Much nicer to be able to avoid the to_owned; there isn't really a realistic use case for special where the string wouldn't be a hard-coded constant. Plus this reverts the breaking API change that made resources no longer Copy. Can always revisit this later if a use case comes up where it would be necessary to use a string constructed at runtime, but I frankly think that's very unlikely.

@preyasshah preyasshah merged commit 3f70d1a into master Jul 22, 2024
2 checks passed
@preyasshah preyasshah deleted the ps/staticstr branch July 22, 2024 19:00
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