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

Are HashSets not supported? #513

Closed
MendyBerger opened this issue Mar 2, 2022 · 1 comment · Fixed by #516
Closed

Are HashSets not supported? #513

MendyBerger opened this issue Mar 2, 2022 · 1 comment · Fixed by #516

Comments

@MendyBerger
Copy link

Tried to derive Encode and Decode on a struct with a HashSet property but getting the following error:

error[E0277]: the trait bound `HashSet<u32>: Encode` is not satisfied
 --> src/main.rs:6:10
  |
6 | #[derive(Encode, Decode)]
  |          ^^^^^^ the trait `Encode` is not implemented for `HashSet<u32>`
  |
  = note: this error originates in the derive macro `Encode` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `HashSet<u32>: Decode` is not satisfied
 --> src/main.rs:6:18
  |
6 | #[derive(Encode, Decode)]
  |                  ^^^^^^ the trait `Decode` is not implemented for `HashSet<u32>`
  |
  = note: this error originates in the derive macro `Decode` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
@VictorKoenders
Copy link
Contributor

Oh we must've forgotten that. Will be added in #516

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants