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

secrecy: the trait bound str: secrecy::CloneableSecret is not satisfied #1216

Closed
Turbo87 opened this issue Sep 18, 2024 · 3 comments · Fixed by #1217
Closed

secrecy: the trait bound str: secrecy::CloneableSecret is not satisfied #1216

Turbo87 opened this issue Sep 18, 2024 · 3 comments · Fixed by #1217

Comments

@Turbo87
Copy link

Turbo87 commented Sep 18, 2024

Up until v0.10 SecretString implemented Clone, but it looks like this functionality was lost in v0.10. Was that an intentional decision? It does not appear to be mentioned in the changelog.

Related:

@mempler
Copy link

mempler commented Sep 19, 2024

Weirdly enough, i still have that issue but with serde, even after v1.10.1

the trait `Clone` is not implemented for `str`, which is required by `SecretBox<str>: Deserialize<'_>`

help: the trait `Clone` is implemented for `std::string::String`
note: required for `SecretBox<str>` to implement `Deserialize<'_>`

@tony-iqlusion
Copy link
Member

@mempler fixed in v0.10.2

@mempler
Copy link

mempler commented Sep 20, 2024

Awesome! Thanks a lot :D

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 a pull request may close this issue.

3 participants