Do you reckon this is the right way to mimic the [inline struct](https://github.com/libgit2/libgit2/blob/development/include/git2/clone.h#L65) that's used on the native side? I'm still getting weird memory corruption when I run the tests.