some inlined functions for libgit2 0.18.0
remove types.rs