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

feat(pubsub): implement Clone and Hash for topics #181

Merged
merged 3 commits into from
Jul 27, 2021

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jul 27, 2021

This PR implements

  • Clone for the Topics enum (all subtopics already implement Clone)
  • Hash for all topics

@Emilgardis
Copy link
Member

awesome!

bors r+

one thing I might do, is not use integers here and go with types::UserId, not certain though.

Maybe a T: AsRef<str> or T: FromStr<u32>, but that seems clunky.

I'm happy with the braids, but I can certainly see how it can be troublesome in certain applications...
ping #114

@bors
Copy link
Contributor

bors bot commented Jul 27, 2021

Build succeeded:

@bors bors bot merged commit 1b6d1b9 into twitch-rs:master Jul 27, 2021
@Nerixyz Nerixyz deleted the pubsub-topic-derive branch July 27, 2021 11:17
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