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

Make API types clonable #55

Merged
merged 1 commit into from
Mar 12, 2023
Merged

Conversation

dmweis
Copy link
Contributor

@dmweis dmweis commented Mar 11, 2023

Hey!

I originally only wanted to make Usage clonable because I was trying to pass it around and realise you can't clone it.
But looking at it I noticed that a lot of the API types don't have clone so I added it because it makes working with them easier.
I think some of them could even do with copy since they can be bitwise copied but didn't want to go around randomly adding things that I didn't need yet.

Let me know what you think! Happy to remove a lot of these clones if if you think I put them on types that shouldn't have them!

@64bit
Copy link
Owner

64bit commented Mar 12, 2023

Hi @dmweis , I like it! Deriving Clone is useful and moreover you implementing it for all of them makes library consistent.

@64bit 64bit merged commit 3e2ca9d into 64bit:main Mar 12, 2023
@dmweis
Copy link
Contributor Author

dmweis commented Mar 12, 2023

Awesome! Thanks!

@dmweis dmweis deleted the dmw/make-types-clonable-patch branch March 12, 2023 03:00
@64bit
Copy link
Owner

64bit commented Mar 12, 2023

Thank you for the PR, this is released in v0.9.4

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