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

Remove OwnedBinary's release flag #327

Merged
merged 1 commit into from
Sep 7, 2020

Conversation

JayKickliter
Copy link
Contributor

@JayKickliter JayKickliter commented Sep 3, 2020

release signals to OwnedBinary's Drop implementation whether or not call enif_release_binary(). The only place that changes release from true to false is in Binary::from_owned(). We can therefore remove the release flag altogether by simply preventing drop() in Binary::from_owned().

@JayKickliter
Copy link
Contributor Author

My natural reaction would be to fix those unrelated clippy lints in another commit, but I'll hold off to keep the current diff clean.

@evnu
Copy link
Member

evnu commented Sep 7, 2020

@JayKickliter Thanks for the PR! I fixed the clippy lints on master. Could you rebase please?

release signals to OwnedBinary's Drop implementation whether or not
call enif_release_binary(). the only place that changes release from
true to false is in Binary::from_owned(). We can therefore remove the
release flag altogether by simply preventing drop() in
Binary::from_owned().
@filmor filmor merged commit 54e41c4 into rusterlium:master Sep 7, 2020
@filmor
Copy link
Member

filmor commented Sep 7, 2020

Perfect, thanks :)

@JayKickliter JayKickliter deleted the jsk/remove-unnecessary-flag branch September 8, 2020 16:44
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.

None yet

3 participants