Skip to content

Allow SecretKey to be deserialized from an owned string #268

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

Closed

Conversation

thomaseizinger
Copy link
Contributor

@thomaseizinger thomaseizinger commented Jan 5, 2021

Deserializing directly into a borrowed string only covers the edge
case in which one passes a borrowed string to the deserializer.

If we are given an owned version, the deserialization fails with:

invalid type: string "foobar", expected a borrowed string'

Deserializing directly into a borrowed string only covers the edge
case in which one passes a borrowed string to the deserializer.

If we are given an owned version, the deserialization fails with:

invalid type: string "foobar", expected a borrowed string'
Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

For what its worth, LGTM. Oh, do we need this still with #218?

@thomaseizinger
Copy link
Contributor Author

For what its worth, LGTM. Oh, do we need this still with #218?

We don't! #218 is a much more elegant solution to this problem!

Closing in favor of #218.

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