Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

fix: switch to using *mut ptrs, to indicate ownership #11

Closed
wants to merge 1 commit into from

Conversation

dignifiedquire
Copy link
Contributor

@dignifiedquire dignifiedquire commented Mar 18, 2022

No description provided.

@dignifiedquire dignifiedquire changed the title fix: do not drop null Vecs fix: switch to using *mut ptrs, to indicate ownership Mar 18, 2022
@@ -72,13 +72,13 @@ pub fn drop_struct_macro_derive(input: TokenStream) -> TokenStream {
// A list of fields that should get dropped
let mut to_be_dropped = Vec::new();

// Only take *const pointers into account (also not *mut)
// Only take *mut pointers into account (also not *mut)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that should then say "also not *const".

@dignifiedquire
Copy link
Contributor Author

closing, moving to a world where filecoin-ffi doesn't use this crate anymore

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

Successfully merging this pull request may close these issues.

3 participants