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

store_item should take StorageItem by reference #21

Closed
t-moe opened this issue Jan 30, 2024 · 1 comment · Fixed by #22
Closed

store_item should take StorageItem by reference #21

t-moe opened this issue Jan 30, 2024 · 1 comment · Fixed by #22

Comments

@t-moe
Copy link
Contributor

t-moe commented Jan 30, 2024

store_item takes the StorageItem by value, even though it is only passed by reference to StorageItem::serialize_into.

Is this an oversight or is there a bigger idea behind this?

(my StorageItem is rather big and expensiv to Clone. I would prefer to be able to continue using it, after storing it)

@diondokter
Copy link
Collaborator

Oh, there's no idea behind it. Wouldn't call it an oversight though, it just never came up as a problem.

We could change it. Seems fair. Are you willing to make a PR?
If you do, also include it as a breaking change in the changelog.

Since it's a breaking change, I probably don't want to release it until #19 is ready.

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.

2 participants